Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
0
votes
0answers
36 views

How to Represent Discrete-Time Non-Linear System on MATLAB/Simulink

I am doing a homework, which requires me to create a tank level controller on a PLC software. In order to design an effective controller, I wanted to create the difference equation of the system first,...
1
vote
1answer
56 views

Deriving equivalent impedance of circuit with pi sections

Hello everyone, I am currently trying to find the equivalent impedance of this circuit. The circuit consist of a load C1 which are connected to a two pole pi section with line inductors which are in ...
1
vote
2answers
50 views

Matlab Pade approximation influence on bode plot and step response

I would like to approximate a delay via the pade approximation. I set a normal delay via the exponential term and I set a delay via the pade approximation and I look the difference between the both ...
0
votes
1answer
28 views

How to implement closed control loop control for a 4 switch buck boost converter?

How to can I design a controller for 4 switch buck boost converter ? I used a PID Controller as shown in the image. . I haven't yet found out the right values for the PID controller gain. I want it to ...
0
votes
0answers
36 views

How do I ignore the content in a txt file while plotting on Matlab?

lovely friends! The file in my impedance measurement data is in.txt format, with a title and numerous comments written on it. When I try to plot the data in Matlab, I get an error, which I assume is ...
0
votes
0answers
19 views

How to Design BMS in simulink?

I have designed a battery pack of li-ion batteries. At the initial stage I have given 0 at both constant blocks. This indicates there is no charging or discharging In the second fig I have applied ...
0
votes
1answer
40 views

Vienna rectifier Matlab simulation

I am trying to simulate the following case: A three-phase source in a Matlab is connected to a Vienna Rectifier which is supposed to supply power to a resistive load of 50KW. Output DC voltage to be ...
0
votes
0answers
15 views

Multi machine model of power system dynamics in MATLAB/SIMULINK

I am interested to design a controller for low frequency oscillations in power system. A standard system 4 machine 11 bus system is consider (2 area system Kundur's book). For modelling of a system in ...
0
votes
1answer
23 views

MATLAB Simscape: modeling variable load with varying DC voltage

I have a model for a solar array and a battery in MATLAB Simulink (simscape). and I would like to model a load given the power consumption over time. The load is connected to the battery the voltage ...
0
votes
1answer
23 views

error in dimension for adder in negative feedback loop

im a universiity student i was trying to model this state space with simulink i tried to use the state block but got the same error i think i need to use mux i already checked the dimensions for A B C ...
0
votes
1answer
41 views

How to find the modulation index of an amplitude modulated signal from the spectrum analyser?

My aim to is compute the modulation index(u) of a amplitude modulated waveform but I only have access to its power spectrum from the spectrum analyser. I attached an image from the spectrum analyser. ...
2
votes
0answers
66 views

Pulse Doppler radar system simulation using MATLAB

How to code this project in MATLAB I'd tried coding this project (prob. 3-2, third paragraph) in MATLAB through this tutorial : https://www.mathworks.com/help/phased/ug/doppler-shift-and-pulse-doppler-...
0
votes
1answer
42 views

Simulink scope changes value depending on simulation time

I am making a co-simulation in Simulink for a circuit that I made in ORCAD, and I saw this problem that appears: If I put the final stop time for simulation 10s the signal looks like in first picture ...
1
vote
1answer
84 views

Why is frequency spectrum centred at 1 kHz?

This is the circuit that I have built I set the Continuous-Time VCO to a frequency of 1 kHz. Since there is no message signal the modulation index is =0 meaning I would expect one peak and I would ...
0
votes
1answer
44 views

Plotting a Bode from a Transfer Function on Matlab

I need a bode plot for a transfer function from matlab which I never did before. I tried some examples but failed. How to do this on matlab? Here is the TF:
0
votes
0answers
82 views

Voltage gain from AC

Voltage gain CE & CC from AC Can you tell me please if I am true in calculation of gain of this circuit? Assumption: gm is known and beta=inf, Early VA=inf => gbe=0, gce=0. Here the Matlab code : <...
0
votes
0answers
36 views

Using Quickfield LabelMover to extract specific local values at coordinates

Quickfield Student Edition I've attempted using Quickfield's LabelMover Serial Analysis to automatically get local values of interest at a set of different specific coordinates, but I couldn't find a ...
0
votes
1answer
61 views

Why am I getting incorrect results via DC test performed in Matlab/Simulink?

I am performing DC test in Simulink to find the stator resistance. The three phase SCIM parameters are taken as: The setup in the Simulink is shown below: The %error is too much (25%). Can anyone ...
0
votes
1answer
98 views

Can I remove my step response overshoot?

I am working on a balance controller for a robot. I found the open loop transfer function between the motor voltage and robot pitch angle: ...
1
vote
1answer
53 views

Confusion regarding terminology [closed]

Originally i asked this question on DSP SE yesterday but untill now couldn't get even a single comment so I am reproducing my question here as bigger audience is available here and also my question ...
2
votes
1answer
59 views

I am miscalculating the Asymptotic Bode Plot

hope you are all doing well. Right now I am dealing with a homework and I have transfer function and I need to plot the asymptotic Bode Plots of it. I am trying to plot the Magnitude Diagram right now,...
0
votes
1answer
48 views

Can I Simulate a SMPS Compensator on Matlab/Simulink

I've designed a type 3 compensator for a full bridge dc-dc converter, I just want to be sure about its stability and want to check its bode plots, I have a open loop model, I can apply pi control on ...
0
votes
0answers
42 views

Fault recovery of a UAV using MATLAB

I'm currently investigating fault recovery in a UAV using MATLAB. I've been given several variables: phi = the roll angle psi = the yaw/heading angle beta = the side slip p = roll rate r = yaw/...
1
vote
1answer
39 views

Trouble with meeting design specifications of a second order system using Matlab

I am trying to solve the following question. Consider the transfer function $$G(s) = \frac{1.247}{s^2+9.76s+23.8}$$ is in the forward path of a unity feedback control loop. Assume that it is ...
0
votes
0answers
34 views

Simulink - STM32 - PIL test communication error

I have a Simulink model that contain an algorithm block. I built the generated c code succesfully to STM32F4-discovery board. (I read that from diagnostic viewer.) I used SIL/PIL Manager App to make ...
0
votes
0answers
67 views

Linearization of Simulink nonlinear state space models with Linearize

States of the system in Simulink Conttrol Design are identified at the output of the integrator blocks accross the system. If a model is already developed in a ...
0
votes
1answer
64 views

How to simulate magnetic field of a toroidal solenoid?

I am trying to simulate the magnetic flux inside and outside of a classic toroidal solenoid. The simulation must be able to simulate a toroidal solenoid with several densely wound layers of copper ...
0
votes
1answer
53 views

Matlab digital phase locked loop script

I am trying to extract carrier signal from amplitude modulated signal. The amplitude modulated signal is stored in a CSV file. I tried to calculate calculate carrier frequency by calculating the zero ...
0
votes
0answers
25 views

How to regulate the load node?

I was given the next assignment, but I dont know what to do. From the system showed there must be a regulation at the PQ node (3rd). But the course is starting and I have no idea what to do, it is ...
0
votes
0answers
110 views

Co-Simulation PSpice - Matlab

I simulated in Orcad an inverter, and I wanted that to Co-Simulate it in Matlab. The problem is that I get only '0' value on Simulink scope. The circuit in Orcad is (see first picture.) and the ...
0
votes
0answers
79 views

Strange oscillations in Simulink for a buck-boost converter connected to a solar panel

I am building a model of a solar power system. In it, I connect a string of solar cells to a buck-boost converter. I use Simulink and Simscape Electrical to perform simulations. I am encountering an ...
0
votes
0answers
106 views

Using wrapTo2pi in simulink

Is there a way to use wrapTo2pi in simulink without getting error 'Function 'wrapTo2Pi' not supported for code generation.' Thanks.
0
votes
2answers
80 views

Numerical output of RC Circuit

I am trying to numerically generate the output voltage of an RC Filter to that of Plot 1 using the following formula. Using the following code: ...
-1
votes
3answers
85 views

Why am I getting this annoying problem in Multisim?

I'm using the "edit model" button under the "value" tab of various components in Multisim. Some of the components give me a nice tabulated view of the components characteristics ...
-1
votes
3answers
71 views

Rewrite matlab code for hardware

I am working on implementation of PLL. The implementation in MATLAB is done. It should be simulated in a similar way in hardware. Honestly, I don’t understand what a simulation in hardware means. ...
0
votes
0answers
17 views

Convert Output Voltage from Delsys Trigno to Acceleration in Matlab

I have the Delsys Trigno Wireless EMG Sensors connected to NI DAQExpress and am reading the signals into MATLAB. I am reading the EMG data from one sensor (Ch 1.1) into AI1 port and the acceleration ...
0
votes
0answers
48 views

matrix multiply showing error in dimensions when i am using it for fm demodulation in simulink

I am doing FM modulation and demodulation of audio signal. i have successfully implemented the fm modulation but as i give the output of FM modulation to the matrix display at receiver end, it is ...
0
votes
0answers
14 views

How shoud I create an adaptive neuro fuzzy inference system (ANFIS) in MATLAB when I have a lot of inputs?

In a fuzzy inference system, when the number of inputs increases, they usually either reduce the rules or, in order not to make mistakes, write the ruless between several nested systems, right? For ...
0
votes
0answers
33 views

How to read a (matrix) text file from Matlab and store it in a memory array in verilog?

I have a text file named "rad.txt". I want to load content of rad.txt into a variable name [31:0]RAM[3:0][3:0] in verilog. rad.txt contains 0,2,0,1 ...
0
votes
0answers
29 views

How would I use PhaseFrequencyOffset correctly in MATLAB?

So I am currently using MATLAB Live Script to run a script with a modulation index of infinity, but at this point im using 5. The programme itself is a synchronous demodulator using a non-coherent ...
1
vote
0answers
45 views

What is wrong with my Simulink model of a first order Delta Sigma Modulator?

I'm trying to design a Delta-Sigma Modulator for frequency synthesizer applications and am (just right now) figuring out how to properly configure a first order DSM in Simulink. I've made a few small ...
0
votes
0answers
37 views

RMS error of a phase shifter

I am trying to develop a Matlab code that calculate the RMS error of a digital phase shifter. After writing the code I have used the s2p data provided by different manufacturers and tried to produce ...
0
votes
0answers
45 views

Pspice to Simulink/Matlab

I made a circuit in Orcad Capture and I want to co-simulate it in Simulink, for other future operation, and a problem appeared: I can't connect my PSpice Block to a VDC source from Simulink (see ...
0
votes
0answers
55 views

MATLAB multi-player planar coil geometries Fasthenry, Fastcap

I'm looking for some software to calculate inductance and capacitance for planar coils: I have tried Layout editor - doesn't calculate inductance for imported gerber files from Kicad and I am not sure ...
1
vote
0answers
227 views

How to read data from Agilent 34401a using GPIB-USB-B connection

I want to read data from an Agilent 34401a DMM directly into python or matlab so the data can be automatically recorded. However, I can't seem to make the connection. On my computer the device is ...
0
votes
1answer
66 views

How can I see the magnitude and frequency of a signal (DFT) in PLECS?

I am trying to obtain the Fourier transform of a signal by using the DFT of PLECS but I got some weird results. Here is a very simple sinewave generator and the DFT block: DFT_plecs_1 Here are the ...
-1
votes
2answers
190 views

How can I make a degree symbol on an axis label of my MatLab graph?

I am currently using this-> ylabel('Temperature (degrees C)') but I want to change the word degrees into its symbol to make the label shorter in length.
0
votes
0answers
30 views

Undefined function 'etapar' for input arguments of type 'cell'

Hello everyone i'm working on a project of pwm command using simulink,but i'm stuck in this error "Undefined function 'etapar' for input arguments of type 'cell'" any solutions please??
0
votes
0answers
32 views

Decode a WCDMA signal

I am trying to decode a WCDMA signal on MATLAB and I am having some trouble trying to grasp the concept of it and was hoping for some feedback. I have a row vector, 'scrambleCode,' containing 38400 ...
1
vote
1answer
145 views

How do i read the RGB values of an image in Verilog from a hex file generated in Matlab for processing?

I have used Matlab to generate hex file for an image (1200 * 900 resolution). The hex file is like There are such 3240000 rows. How do i read this in verilog to performing some processing (filtering ...

1
2 3 4 5
10