Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

Noise Floor of ADC using PWELCH

While using MATLAB's Pwelch function, I am not able to match the noise floor of the "Modelled" ADC to (Delta)^2/6 {1 sided Spectrum}. ...
0
votes
1answer
35 views

offset binary from ADC to Decimal

Im trying to read data from ADC with ADC Inteface Im designing with FPGA. The data that coming out from the ADC is offset binary with 12 bits.. looks like that: I want to simulate this results using ...
0
votes
0answers
15 views

VCO in MATLAB with Arbitrary Phase Noise Profile

I want to model a complete PLL behaviourally and use MATLAB with an arbitrary VCO phase noise profile. My VCO has a known KVCO and a known Phase Noise at a 1MHz offset (say 130dbc/hz). I also know ...
0
votes
0answers
17 views

How to use the feedback function in Matlab when we have nothing in the feedback loop?

Matlab's feedback function is used to obtain the closed loop transfer function of a system. Example: sys = feedback(sys1,sys2) returns a model object sys for the ...
0
votes
1answer
58 views

Finding the overall transfer function and plotting root locus of a digital control system

I have started to learn about digital control theory and struggling with a particular diagram of a digital control system. The system is presented below: \$D(z)\$ is a digital compensator, \$G_{h0}\$ ...
0
votes
1answer
30 views

Matlab c2d(1/s) is different than z transform tables

c2d is used to convert a model from continuous to discrete time. The official doc states: sysd = c2d(sysc,Ts) discretizes the continuous-time dynamic system model sysc using zero-order hold on the ...
0
votes
2answers
56 views

Perfect component on LTspice

Is this possible to have perfect components in LTspice? No parasitic inductance, no parasitic capacitor, no resistor, etc? Is it not possible is it possible to make a model and model it with no ...
0
votes
0answers
19 views

Meaning of impedances in IEEE Test Feeders

I'm having a dilemma about impedances for different line configurations in IEEE Test feeders. What do these impedances mean for arbitrary configuration like Configuration 601: Do they represent phase ...
0
votes
0answers
28 views

Help modifying solar cell to include water cooling on simulink?

Hi, for my honours project at university i am basically doing an analysis of how water cooling a solar panel improves efficiency by decreasing the temperature of a solar cell. Part of my thesis ...
1
vote
1answer
34 views

Finding coefficients for a PID controller that minimize the integral of the squared error (ISE)

The problem The problem is to find the coefficients for the P, I and D terms of a PID controller used to regulate the object that minimize the the integral of the squared error (ISE): $$Q = \int_0^\...
2
votes
1answer
157 views

Solving a linear system of equations from a mesh analysis in the s-Domain

Here is an exercise from my Textbook in which one is asked to find the mesh currents: The first thing I did was find the s-Domain equivalent of the circuit: Now, I can write the mesh equations from ...
1
vote
1answer
68 views

LTspice Vs Matlab - Power electroncs

What are the advantages in power electronics of Matlab in comparison with LtSpice and vice versa ? Thank you very much and have a nice day ! :D
0
votes
0answers
17 views

control Linear analysis error due to RMS(IIR) filter?

my Objectif is to get a frequency response of the open loop system of plant which will allow me to design the controller transfer function. after including the RMS filter, the Analysis tool of ...
0
votes
0answers
22 views

PI tuning from simulink scope?

I would like to use the method of Zigler-Nichols method for open loop. I got the step reponse from Simulink scope but How can I calculate the L and A from the scope?
0
votes
1answer
29 views

What effect does having 'measured' as a parameter in additive white gaussian noise?

I'm comparing the bit error rate of various modulation schemes with additive white gaussian noise in MATLAB. There's the option to have this noise using 'measured' which measures the power of a ...
0
votes
1answer
54 views

Why is my LC filter Bode flattening out to 20dB/dec in my Simscape simulation?

I just made an LC filter Matlab Simulink simulation and I don’t know why the Bode diagram is flattening out. After the resonance it falls steeply, but after that it sets at 20dB/decade. Shouldn't it ...
0
votes
1answer
26 views

What does division order mean in Rayleigh Fading?

So I'm just beginning to understand how Rayleigh Fading works and I'm trying to model some different modulation schemes with Rayleigh fading channels. I'm doing this on MATLAB where one of the ...
1
vote
0answers
20 views

What is the difference between using a baseband representation of a QPSK modulation scheme and a theoretically simulated QPSK modulation scheme?

I'm looking to compare the BER vs SNR performance of a QPSK modulation scheme, one which is a theoretical simulation on MATLAB and the other is a baseband simulation on MATLAB but I'm struggling to ...
0
votes
0answers
7 views

What is a Simulink Embedded Function Model?

I can't seem to find a definition of what this is. Does this mean a simulink model that only uses simulink blocks? Does this mean that matlab code is written to define the I/O of a block?
0
votes
0answers
23 views

Problem reading control effort frequency response plot

I am trying to plot the frequency response control effort of a control scheme in Matlab, and in particular I want to do this for different values of tau, which is a constant used to add a pole at high ...
1
vote
0answers
36 views

Problem with performances of a control scheme

I am trying to prove with Matlab that if I have an improper system and I place poles at higher and higher frequencies the performances of the system improves. In particular I am considering the ...
0
votes
0answers
26 views

hinfsyn function in MATLAB

I am using hinfsyn to get a controller. I am not able to understand the output CL is a transfer function from what to what? Referring to the diagram in the hinfsyn documentation, is it the transfer ...
0
votes
1answer
25 views

simple matlab function (simulink) with if?

have written the very basic Matlab function on Simulink and would like why I am getting this error: ...
0
votes
0answers
22 views

how to overcome the slow pace of my simulink model?

I have run the solver profiler to debug where my simulink model stuck and take very long time to simulate. I found out it is the diode model that I model as following: It runs fast on its own. ...
0
votes
1answer
33 views

MATLAB model of an op-amp's Open Loop Gain

I'm using MATLAB to analyze an amplifier in a transimpedance circuit, and I'm a little lost in implementing the op amp's open-loop gain function with the following formula: $$A(s) = A_{OL} \cdot \...
0
votes
1answer
34 views

Difficulty stabilizing a system using sisotool on Matlab

I am trying to design a controller for a synchronous buck converter by using the siso tool on Matlab. The inductance value is 1.28mH, the filter capacitance is at 4.8uF and the load is a 240Ohm ...
0
votes
0answers
40 views

How to design this estimator?

I have the following problem to solve: I am really at loss of how to design the estimator for such a system and plot the closed loop step response. This is what I have so far in Matlab: ...
0
votes
1answer
77 views

Difference between parallel and standard form pid controller in simulink?

What is the difference between parallel and standard form of pid controller that is provided by pidtool in Matlab simulink? In terms of block diagram?
0
votes
1answer
57 views

Cutoff frequency of transfer function at -6 dB

I'm trying to design a second order low-pass filter using the following transfer function: \$\ H(s)=\frac{f_c^2}{s^2 + 2 f_c s +f_c^2} \$ with cutoff frequency fc = 3400 Hz Whenever I plot this, ...
0
votes
0answers
15 views

Possible inconsistencies in solution to second order transfer function step response

I'm trying to use matlab to solve the second order DE for car suspension for a particular oscillation period and overshoot percentage (0.5s and 5%). I thought I had solved it but I've found some ...
0
votes
0answers
18 views

Using symbolic expression to store and fplot summation (symsum) - truncated Fourier series

I need help to: Create a symbolic expression of a summation; Using fplot, plot this summation for the interval between -1<=t<1 In other words, create a symbolic expression for xN(t) for N= 1,3,...
0
votes
0answers
57 views

Trouble connecting to temperature controller using MODBUS,RS485 and MATLAB

I am trying to communicate with a temperaturature controller ATR-401 using MATLAB but i am having trouble just connecting to it and reading temperature data.I have set baud rate, data bits, parity and ...
0
votes
1answer
35 views

Read Data from Temperature Controller using MATLAB, Need Help

I am trying to read data from a temperature controller called ATR-401 using MATLAB's tool box called Instrument Control Toolbox but every time i try to read data from it i get an error "A timeout ...
1
vote
2answers
73 views

Matlab code to derive the overall difference equation relating two systems

Using Matlab, I am trying to: Get the overall difference equation relating to z[n] to x[n] and check if z[n] = x[n] is a valid solution to the overall difference equation I have two signals given ...
0
votes
2answers
98 views

Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
0
votes
2answers
105 views

Matlab code to determine and plot impulse response

I have a signal y[n], represented by the vector y in this form y[n] =x[n] + ax[n−N] About this signal: x[n] is the uncorrupted speech signal which has been delayed by N samples and added back in ...
2
votes
2answers
48 views

How to use MATLAB to observe the effect of multiple damping factors?

I want to use MATLAB to observe the effect of changing zeta (damping factor) on system response? Here is a m-file code that plots three responses: underdamped, overdamped and critically damped. <...
0
votes
0answers
26 views

Calculating energy signal with symbolic math toolbox

I am trying to do calculate, via integration int, the energy of a signal using Matlab. My signal is defined this way: f(t) = t * (u(t) - u(t-2)). For this, I have the following code: ...
0
votes
0answers
31 views

Setting up parameters for generating QAM signals

I am trying to simulate multiple baseband QAM signals for random data at varying power levels, data-rate, carrier frequency, and modulation order using MATLAB. Here is how I set up the parameters: <...
1
vote
1answer
73 views

How to determine value of t when plotting a signal

I'm trying to implement this model inatlab: I know that Ri = 2 and Si = -0.05+3j, ignore n(t). I want to plot the signal in time response, this is what I got so far: ...
0
votes
0answers
32 views

How to model RF-PA in MATLAB when the design values are given?

I have been given a designed Class-E RF-PA - the technology used for the MOSFET, the inductor and capacitor values attached to the MOSFET (as given in the figure below). I am suppossed to find the AM/...
2
votes
0answers
135 views

Vanishing of Gibbs Phenomenon in MatLab

I was trying to represent a square wave with its Fourier series in Matlab. But as I increased the number of terms in Fourier series expression, the Gibbs phenomenon vanished and the edges of the ...
0
votes
0answers
188 views

Embedded C - USB stack, arm-none-eabi-gcc settings and Matlab interface

I am using LPCOpen (latest realese available for LPC4370) and the usb stack provided within it. I need to build a simple FSM to control the mcu with Matlab and send data from Matlab to the mcu and ...
1
vote
0answers
50 views

Phase noise of a digital PLL

I assume the reader is aware of how a DPLL works. The DPLL oscillates with a frequency of \$F_{out}\$. The DCO free running frequency is \$F_{free}\$. In the model of our DPLL we've only considered ...
0
votes
0answers
29 views

What is the correct graph for the IEEE 14 bus system bus voltage?

I'm working on optimizing the powerloss across an IEEE 14 bus system. I got this figure for the voltage across the buses before and after DG placement. Is this how a typical 14 bus system voltage ...
0
votes
1answer
26 views

What is the time axis array after we convolve two functions in Matlab after sampling it with frequency \$f_s\$?

Suppose we have a continuous time function \$f(t)\$ , we sample it at frequency \$f_s, (t = -5:1/f_s:5)\$, and store it in an array \$a\$ in Matlab. Now we convolve it with itself using \$b = conv(a,a)...
0
votes
2answers
352 views

Relationship Between Root Locus Pole and Percent Overshoot and Gain in MATLAB

I have a peculiar confusion regarding the relationship between a closed-loop pole on a root locus plot and its gain and percent overshoot. I have found a point on the root locus plot that MATLAB ...
1
vote
1answer
33 views

How do we interpret frequency from fft command in matlab?

How do we interpret frequency from fft command in matlab? When I apply fft to a sampled function(@ Fs) and I get peaks at some values in the fft array. How do I know what frequency in Hertz does it ...
1
vote
2answers
56 views

MATLAB:Reducing Transfer Functions using: Append&Connect technique VS Feedback,cloop,series&parallel command technique

The problem here was when I tried to counter check my answer using algebra and the two techniques above I got three different outputs all together.. The code: ...
1
vote
0answers
24 views

Is it possible to predict the operating state of a power system (using MATLAB) if I have calculated the voltages at all nodes by state estimation?

If I have calculated all the node voltages by state estimation, is it possible to predict which operating state my system is at? By operating state, I mean any of the following: ...

1 2 3 4 5 8