Questions tagged [simulink]

Simulink®, a MathWorks® product, is a block diagram environment for multi-domain simulation and Model-Based Design. It supports simulation, automatic code generation, and continuous test and verification of embedded systems.

Filter by
Sorted by
Tagged with
2
votes
1answer
62 views

Analytic Signal Block in Simulink Gives Reduced Amplitude for the Imaginary Part

In Simulink, I have connected a sine wave to zero-order hold and zero-order hold to analytic signal block, as in the figure below. My purpose is to transform the real signal to the corresponding ...
0
votes
1answer
72 views

Limiting Bandwidth for QAM and OFDM signal in MATLAB Simulink

currently im creating an application capable of generating QAM and OFDM signal to be transmitted using SDR. The whole application is implemented in MATLAB Simulink using only code generateable ...
0
votes
0answers
38 views

Problem with the output self implemented “ Iterative FFT DIT Radix2 ” algorithm matlab

I´m trying to implement my own FFT with the iterative Radix2 algorithm (I even thought about using the recursive one but it seems Simulink doesn´t allow me to). I tried all of the possible variations ...
4
votes
2answers
136 views

How to set parameters of the PI controller inside the PLL?

I am going to implement in C++ software the synchronous frame phase locked loop (SFPLL) for estimation of angle and frequency of the three phase grid 220V/50Hz. For the internal PI controller setting ...
2
votes
1answer
89 views

Why does Simulink generate this code for a PID controller?

For the Simulink PID Controller model The Simulink generated code (rewrite for better understanding) is: ...
0
votes
0answers
12 views

How to apply settings for mu law

I am trying to understand reconstruction of analog signal I am using the files available on mediafire There are two files, M-files through which we get input values from user and then feed those ...
4
votes
1answer
219 views

How do I get a faster system response?

I have this model in simulink (the graph is my output): The step input has amplitude 0.5 m/s, and it steps up after 0.1 seconds. The gain $K_p=5$. The saturation block is to keep the voltage between -...
0
votes
0answers
13 views

Simulink ; Code Generation ; Configuration Parameters : how can I activate the Test Bench Configurations?

FFT_HDL_Block im Simulink in the Matlab Help it says that in order to activate the Configuration panel I need to make sure that the system is selected as DUT and not as Entire Model. but where I can ...
0
votes
1answer
83 views

Is Step the same as an Impulse + 1/s?

Isnt a Step (as a Transfer function -> $ \frac{1}{s} $) and Impulse (trans fcn -> 1) therefore Impulse + $ \frac{1}{s} $ should be equal to a Step in Simulink ...
0
votes
0answers
121 views

Moving average filter output magnitude in simulink

I was using the Moving average filter provided by simulink. I set the window length equal to 31 samples and i was using a fixed step solver with a step size of $\frac{1}{(50\times24)}$. I used a unit ...
1
vote
0answers
29 views

Transferring audio through arduino. Formation of a parcel

I'm new here. I want to try streaming audio using arduino. I have: arduino Radio module nrf24l01 Computer Matlab program, arduinoIDE I want to use a computer microphone, step by step ADC of the ...
0
votes
0answers
35 views

Spectrum Visualization of TX AD9361 Simulink Model

I'm using the SIMULINK AD9361 simrf support models, more specifically i use an AD931 TX model to generate a 20MHz RF LTE signal around 2GHz Fc the issue is when i use a spectrum analyzer scope i see ...
2
votes
1answer
112 views

How to improve accuracy while converting floating point coefficients to fixed point in the case of an all pole IIR filter

I am having an all pole IIR filter of order 5 with floating point filter coefficients ...
2
votes
1answer
479 views

How to get Step Response from an Impulse Response in Simulink?

Im sorry if it seems like a trivial question but I am confused right now. Im currently watching my professors lecture. And he basically has $\lambda(t)$ as ...
1
vote
1answer
317 views

Complex Data type not accepted in Simulink

I am having an issue with the interaction of the Matlab function block in the Simulink with my model block. Below you can also find the picture. I have created a Matlab function with three inputs and ...
0
votes
1answer
26 views

What channel model to choose while simulating a system in passband with frequencies over GHz range?

I was wondering as to what kind of channel model do we use to test for BER vs SNR in a passband RF system. The system that I designed is basically a wideband frequency hopped OFDM system where I use ...
2
votes
1answer
37 views

Feedforward disturbance signal compensation

The reference Feedforward control concepts through Interactive Tools says, to minimise the effect of the disturbance $d$ on the process output $y$, a compensator $G_{\text{ff}}=P_3/P_1$ shall be used. ...
0
votes
2answers
103 views

A Practical Method for Correcting Phase Errors in a Transceiver System Comprising of OFDM + DUC and DDC

I am back with a question related to my OFDM Transceiver System that I am designing where I use DUC and DDC. I could get rid of the high BER problem. I realized that the problem was due to the phase ...
0
votes
1answer
32 views

How do we know the receiver delay in an OFDM transceiver system?

I was simulating a simple OFDM transceiver system without a channel (just the transmitter and the receiver directly connected). I saw that if I use the "Find Delay" block in Simulink between the ...
1
vote
0answers
18 views

Model of modulator and demodulator in Simulink. Why is MER so lowest?

I created a simple model in Simulink of a quadrature modulator, amplifier and quadrature demodulator. On the oscilloscope(scope in Simulink) and spectrum analyzer the displayed results look normal (at ...
0
votes
1answer
186 views

Help in designing filter for DUC (Digital Up-Converter) and DDC (Digital Down-Converter) using the built-in DUC and DDC blocks in MATLAB Simulink

Can anyone please help me in simulating a simple BPSK transceiver system that correctly receives a signal through a DUC and DDC? I have attached the screenshot of my Simulink system along with ...
2
votes
0answers
77 views

Simulink cross correlation issue

here is the Simulink model that i'm using : The matlab function script : function tau = fcn(sig,refsig) tau = gccphat(sig,refsig); The errors :
2
votes
0answers
244 views

Understanding and converting Matlab's coarse frequency compensation function

I am trying to understand and convert to C Matlab's coarse frequency compensator the documentation for which can be found here: Documentation Matlab's design itself is based on this IEEE paper: ...
2
votes
2answers
363 views

Understanding Matlab's Automatic Gain Control function

I am trying to understand the automatic gain control block provided by the communications toolbox. The documentation is here: Documentation My questions are in regards to two of the configurable ...
1
vote
1answer
181 views

Length of Matlab Raised Cosine Filter Output Complex Vector

If I instantiate in Matlab a filter, a vector, and use them in the following way: ...
0
votes
1answer
110 views

Translating Matlab scrambler function to C

I am trying to implement the following matlab function in c: Mathworks scrambler Function Documentation This is the code I've written: ...
3
votes
0answers
98 views

Role of Riccati Equations in Kalman Filter Design

I am working on a Kalman Filter (KF) design problem and I am struggling to understand the role of the Riccati equations in the design process of a KF. Some sources discuss the importance of Riccati ...
0
votes
1answer
2k views

How to model state space for complex valued system correctly in SIMULINK (MATLAB)?

When trying to use the default state-space model block, if there is a complex number valued in the matrices, there will be an error To resolve that, firstly I need to look at pseudo reference model ...
0
votes
1answer
386 views

"Revolving" QPSK Constellation

I am trying to code a QPSK transmitter in VHDL but first I want to create one out of Simulink blocks and translate it into VHDL code. I am using an example project for the PlutoSDR as a guide. This ...
1
vote
1answer
381 views

DFT (FFT) of Non Uniformly Sampled Signal

I am trying to perform an FFT of a non-uniformly sample signal. My input comes from Simulink and PLECS which uses variable-time solver. So far, I have used ...
0
votes
0answers
77 views

Plot Background Noise

I am a total newbie in signal processing. I have been trying to plot on simulink a time/frequency domain noise in PLC (Powerline Communication) that matches a real-world research "...
0
votes
1answer
22 views

How do I simulate a purely real signal being received on multiple antennae in an array?

I have a signal created at baseband and then transmitted as $$\Re\{s_{bb}*e^{2\pi f_ct}\}$$ which is then received at a 5 element array for further processing. How do I interpret the real signal at ...
0
votes
0answers
14 views

variable factors in Simulimk

In my simulation of an equation in Simulink, I need to have variable factors the same as shown in following picture but Simulink doesn't accept that. how I can solve this problem?
0
votes
1answer
1k views

How to implement a $1$-bit quantizer in Simulink?

I am trying to implement a delta-sigma modulator block diagram in Matlab Simulink but can't find a $1$-bit quantizer (which is required in the modulator) anywhere. Could anyone please tell me how to ...
-1
votes
1answer
806 views

Signal envelope

I have a relatively low-frequency signal and want to calculate the peak envelope of it in Simulink. I tried some of filters but the envelope is not well precise. can anyone help, how can I do it?
0
votes
1answer
259 views

Amplitude value after a Discrete-Time integration calculation?

I am using Matlab block Discrete-Time Integrator on Simulink and I would like to know in advance, what output of that block regarding to its amplitude and the current sampling frequency would be. ...
-1
votes
1answer
266 views

signal saturation [duplicate]

My signal is an actuator displacement signal. It is a sinusoidal signal with the max amplitude of 10cm. I want to clip amplitude at 7 cm in Simulink. But with saturation block, I will get flat ...
5
votes
2answers
4k views

Inverse system in Simulink

I have the following inverse system $$G(s)= s^2 + 2s + 3$$ How do I implement it in Simulink? Note that the transfer function is only accepted if and only if the order of the numerator is less than ...