Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
151 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 ...
2
votes
0answers
126 views

Sending data from Simulink Matlab to development board F28379D

I'm fairly new to Simulink programming so bear with me. My project is to measure some parameters with the ADC of the board and send them over serial (SCI_A) to a Simulink file I'm running on my PC ...
2
votes
0answers
395 views

Matlab Phase Locked Loop Design : FM Demodulation

EDIT: It seems I've asked too much at once here. I'll do some more studying and come back if I have more specific questions. I'm trying to design an analog phase locked loop in Matlab. I've read ...
2
votes
0answers
69 views

Designing PID to reject load disturbances of dead-time process

I am using the PID Tuner for the PID Controller Block in Simulink. I am particularly interested in the output disturbance BODE plot. I am trying to achieve an acceptable output disturbance with the ...
2
votes
0answers
962 views

I need to calculate the average power spectral density after passing packets through a butterworth filter using MATLAB

I am trying to generate 100 packets(row vectors each of size 8192) of random bits(1,-1),filter them using butterworth filter and then plot their average power spectral density. I have to do this using ...
1
vote
1answer
36 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}. ...
1
vote
1answer
38 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^\...
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 ...
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 ...
1
vote
0answers
52 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 ...
1
vote
2answers
63 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
vote
0answers
37 views

Values got from programmed PID are different from ones simulated in Simulink

Please also read Update I created a PID simulation in Simulink: where the Step block is set with parameters: ...
1
vote
0answers
34 views

How to calculate or show in matlab/pspice the DC component from a circuit simulation?

Based on Pspice I'm simulating this RL full wave rectifier That gives the next voltage and current output at the showed probe point The idea is to extract the DC component of the current or voltage, ...
1
vote
0answers
118 views

Understanding MATLAB function blocks in Simulink

Before I ask my question, let me explain what I'm trying to do. I want to design a simple system in Simulink with the features shown below. When I say simple is that I don't need complex and large ...
1
vote
0answers
131 views

ROM initialization in VHDL for waveform generator

I have to create a waveform generator and i used matlab to generate the sine wave. Now my TA told me to store the points from the wave in a ".mem" file then initialize the ROM by i guess importing ...
1
vote
0answers
53 views

Reading from Keysight Scope to MATLAB

I have a DSO-S 104A scope. I have it connected through a USB 3.0 cable to a PC with MATLAB. I want MATLAB to read the waveform from the scope into a vector. I'm sampling packets of pulses, the ...
1
vote
0answers
37 views

How can I get/calculate simulink bldc parameters

I tried to get the parameters for a bldc simulation https://de.mathworks.com/help/physmod/sps/ref/brushlessdcmotor.html I tried to find a similar motor to the I need (500 W, 20-25 Nm, geared bldc) ...
1
vote
0answers
1k views

PI Controller Design (Ziegler-Nichols) and Unit Step Response Graphing for 4th order system

I have a system that requires a PI controller designed using the Ziegler-Nichols Methods. I would also like to plot the unit step response in Matlab, but I am getting extremely weird results. This is ...
1
vote
0answers
683 views

How can i create a dead time between two signals in Matlab/Simulink?

I have a curcuit which outputs two different pulse signals from two different "PWM generator(DC-DC)" block. I will apply these signals to two different mosfets. Thus I need to create a dead time to ...
1
vote
0answers
117 views

Phase Locked Loop Gain Design- FM Demodulation

Say I am trying to demodulate a message up to 25kHz in frequency, with a peak frequency deviation of 75kHz and a carrier of 1MHz, implying a 200kHz bandwidth using carsons rule. Would I design the ...
1
vote
2answers
1k views

shifting signal in simulink

I would like to know how to shift a signal in Simulink. The case is I am using PWM generator(DC-DC) and the input D is from a lookup table,a sine wave. From the PWM generator block i am taking the ...
1
vote
0answers
268 views

Circuit Breaker Simulation in Matlab with Mayr and Cassie Equations

I'm trying to understand how to model arc circuit breaker. There is a simulation example as called Mayr and Cassie Circuit in Matlab&Simulink. I have examined Mayr and Cassie Differential ...
1
vote
0answers
138 views

Bluetooth System in MATLAB

There is a Bluetooth model in MATLAB that can be accessed using this command : commbluetoothfduplex Here its Link : https://www.mathworks.com/help/comm/...
1
vote
0answers
61 views

Struggling to figure out why this capacitor voltage is huge

As you can see in this image from simulations on Matlab-Simulink: I'm tracking the blue signal (reference current) using this circuit Which is in this 400 kV HVDC link as "Snubber". So basically ...
1
vote
0answers
82 views

Measuring sensor noise on analog channels of common single board computers

Using the "MATLAB support package for Arduino" package, I am trying to characterise the analog input channels on an Arduino Uno board. The underlying assumption is that all sensors are inherently ...
1
vote
0answers
71 views

Non equal phase currents at nominal speed vector control Permanent magnet synchronous motor

I working on my implementation of vector control for PMSM. I'm having close loops over speed, current in d axis(flux loop), current in q axis(torque loop). I'm using MATLAB/Simulink for vector control ...
1
vote
0answers
210 views

solar panel model as constant current source + initial values

I have created a simple solar panel model in Matlab, using the diode equivalent model. The basic equation is as follows: ...
1
vote
0answers
204 views

Closed-loop systems - discrepancy between Simulink and Arduino

I am trying to figure out how to reproduce closed-loop systems in Arduino that were designed initially designed in Simulink. Take the following closed-loop system with unity feedback and gain: Where ...
1
vote
0answers
279 views

Matlab and HDL code generation

I have a project involving audio on a Xilinx Spartan6 FPGA. The goal of the project is to make an audio processor using HDL (mostly educative and for fun). It's basically a pipeline of audio effects ...
1
vote
0answers
146 views

Is MATLAB HDL Coder viable for complex FPGA designs?

I'm building a feed handler for an FPGA and, having never done this before, I'm wondering if I would be OK using MATLAB (HDL Coder) as an alternative to VHDL. Is this generally a viable options, do ...
1
vote
0answers
348 views

Fly-back converter

I'm trying to get 2 isolated outputs (5V and 3V from 12V DC supply) using a single flyback converter by adding one more secondary winding on the flyback transformer. Following is the Simulink model I'...
1
vote
0answers
142 views

Analysis of first order RC using Matlab

I finished designing the given circuit using Matlab but I am getting some weird output results on oscilloscope. and here is what I did I used the commands to define the R, F , C, and everything ...
0
votes
0answers
25 views

Sawtooth Wave Fourier Series- MATLAB issue

I have what I believe is the correct equation for my sawtooth wave However, I am having issues with representing it in MATLAB. I keep receiving an error message saying "Matrix dimensions must agree. ...
0
votes
1answer
20 views

Time Auto-correlation function for a polar reutrn-to-zero waveform

I used matlab to calculate the time Auto-correlation function for a polar return-to-zero waveform to make sure that it has an ergodic property . I implemented the following formula as a function in ...
0
votes
0answers
14 views

SOC estimation using UKF in MATLAB/Simulink

I am building a battery model to estimate State of Charge using Unscented Kalman Filter, my doubt is how to initialize Em, R and C values to enter in lookup tables also values for the vectors Capacity,...
0
votes
0answers
22 views

MATLAB - Docking figure

Can I see the editor and the plot in MatLab (docked view) in parallel? This function doesn't work any longer and it was partially what I needed. ...
0
votes
0answers
16 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
18 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
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 ...
0
votes
0answers
18 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
58 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
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 ...
0
votes
0answers
29 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
0answers
27 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
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
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 ...