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
1 vote
1 answer
22 views

Why I am having phase difference between original and reconstructed signal in this simulink model?How can i remove it?

I am trying to implement sampling and reconstruction using simulink and as far amplitude(magnitude) values are concerned ,i have exactly same values but there appears phase shift when i try to see ...
user avatar
  • 871
0 votes
1 answer
29 views

Adjusting pulse amplitude against fixed noise variance to achieve a given Eb/No

Given a short duration pulse of $n$ samples out of a frame of $L$ samples, and amplitude of each of these samples being $A$, and an AWGN channel with variance $\sigma ^{2} = 1$, how can I derive $A$ ...
user avatar
  • 1
0 votes
0 answers
10 views

Simulink delay block doesn't recognize vectors as intial conditions

I am trying to implement the kalman filter on simulink, for which I need the delay block to compute the new estimate based on the previous one. My state vector is three dimensional, and for some ...
user avatar
  • 31
0 votes
0 answers
26 views

Why does my output signal look like this?

This is a coherent demodulation of a BPSK signal. I'm using this link as a reference However my demodulated output comes out with too many redundant values compared to the transmitter. This only ...
user avatar
  • 11
2 votes
1 answer
115 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 ...
user avatar
  • 23
0 votes
1 answer
120 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
4 votes
2 answers
345 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 ...
user avatar
  • 231
2 votes
1 answer
114 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: ...
user avatar
  • 21
4 votes
1 answer
519 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 -...
user avatar
  • 298
0 votes
1 answer
153 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 ...
user avatar
  • 125
0 votes
0 answers
159 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 ...
user avatar
  • 15
1 vote
0 answers
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 ...
user avatar
2 votes
1 answer
140 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 ...
user avatar
  • 93
2 votes
1 answer
675 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 ...
user avatar
  • 125
1 vote
1 answer
574 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 ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
2 votes
2 answers
70 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. ...
user avatar
-1 votes
2 answers
121 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 ...
user avatar
-1 votes
1 answer
45 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 ...
user avatar
1 vote
0 answers
50 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 ...
user avatar
-1 votes
1 answer
230 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 ...
user avatar
2 votes
0 answers
103 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 :
user avatar
2 votes
0 answers
320 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: ...
user avatar
2 votes
2 answers
503 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 ...
user avatar
1 vote
1 answer
243 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: ...
user avatar
0 votes
1 answer
119 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: ...
user avatar
3 votes
0 answers
132 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
0 votes
1 answer
481 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 ...
user avatar
1 vote
1 answer
436 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 ...
user avatar
  • 155
0 votes
0 answers
78 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 "...
user avatar
0 votes
1 answer
24 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 ...
user avatar
0 votes
0 answers
15 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?
user avatar
  • 161
0 votes
1 answer
2k 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 ...
user avatar
  • 147
-1 votes
1 answer
881 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?
user avatar
  • 1
0 votes
1 answer
274 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. ...
user avatar
  • 111
-1 votes
1 answer
281 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 ...
user avatar
  • 1
5 votes
2 answers
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 ...
user avatar
  • 83