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
0 answers
34 views

Redirecting audio signals coming from a JACK audio connection kit client to MATLAB/Simulink in linux

Description of my scenario My main computer is connected through network as a JACK client to an embedded board working as master with a loopback connection via I2S to another board that acts as a ...
Gabriel Antonio Santos Baez's user avatar
0 votes
1 answer
182 views

spectral bandwidth of QPSK signal

When running the MATLAB QPSK transmitter and receiver example (found here: QPSK Tx and Rx Example) you can see on the plot of the spectrum that the bandwidth is ~80kHz. If we double click on ...
yellow_watermelon's user avatar
0 votes
0 answers
21 views

Sampling a QPSK signal in Simulink, changing the bit rate and sample rate

my goal is to sample a signal that I generate in Simulink and do some "real time" DSP. I want to try implement some signal classification techniques I have been learning. I tried to make a ...
SS1's user avatar
  • 33
0 votes
0 answers
32 views

What is the yellow wave/signal i am getting in simulink spectrum analyzer of reconstructed signal?

I am trying to implement sampling and reconstruction using simulink but i am also getting a yellow wave/signal in spectrum analyzer of reconstructed signal as marked in red circles in attached snap My ...
DSP_CS's user avatar
  • 1,850
0 votes
0 answers
79 views

Relation between baud rate and sampling rate and regarding simulation in Simulink

I am new to the field of signal processing. So, this might be a very basic question. Recently, I am trying to build a Heart rate sensor for a cycle. I am mod-ekg (olimex) board with TI's MSP430FG439 ...
Ritam Basu's user avatar
0 votes
0 answers
99 views

PLL Simulink Out

I am trying to create a sine wave in PLL output with Simulink. But I get a square wave from the VCO block even though PFD, charge pump and loop filter outputs are correct. The VCO block says that only ...
bb0667's user avatar
  • 103
1 vote
0 answers
192 views

How to create overlapping frames of input signal for stft using HDL coder for FPGA implementation?

I want to implement stft on FPGA. For this purpose I use HDL coder and the problem is I have no idea how to create overlapping frames of data for further FFT. In my example I want to use 256 frame ...
Yegor Krapovnitskyi's user avatar
1 vote
1 answer
99 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 ...
DSP_CS's user avatar
  • 1,850
-1 votes
1 answer
59 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$ ...
Howard's user avatar
  • 43
0 votes
0 answers
164 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 ...
doumham's user avatar
  • 41
2 votes
1 answer
296 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 ...
trxrg's user avatar
  • 23
0 votes
1 answer
276 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 ...
noah123's user avatar
0 votes
0 answers
74 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 ...
Meo PBK's user avatar
4 votes
2 answers
2k 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 ...
Steve's user avatar
  • 375
2 votes
2 answers
339 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: ...
Jackoo's user avatar
  • 23
4 votes
1 answer
1k 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 -...
Carl's user avatar
  • 324
0 votes
1 answer
322 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 ...
John's user avatar
  • 125
0 votes
0 answers
424 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 ...
mka_07's user avatar
  • 15
1 vote
0 answers
35 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 ...
Антон's user avatar
2 votes
1 answer
222 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 ...
Deepa's user avatar
  • 293
2 votes
1 answer
1k 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 ...
John's user avatar
  • 125
1 vote
1 answer
1k 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 ...
Prateek Tiwari's user avatar
0 votes
1 answer
44 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 ...
Amit Sravan's user avatar
2 votes
2 answers
139 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. ...
mikebuba's user avatar
-1 votes
2 answers
138 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 ...
Amit Sravan's user avatar
-1 votes
1 answer
53 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 ...
Amit Sravan's user avatar
1 vote
0 answers
207 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 ...
Alexander Lyapunov's user avatar
-1 votes
1 answer
350 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 ...
Amit Sravan's user avatar
2 votes
0 answers
173 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 :
Nouali Ibrahim Yassine's user avatar
2 votes
0 answers
432 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: ...
yellow_watermelon's user avatar
2 votes
2 answers
921 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 ...
yellow_watermelon's user avatar
2 votes
1 answer
358 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: ...
yellow_watermelon's user avatar
0 votes
1 answer
143 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: ...
yellow_watermelon's user avatar
3 votes
0 answers
336 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 ...
Simon Diemert's user avatar
0 votes
1 answer
3k 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 ...
Unknown123's user avatar
0 votes
1 answer
698 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 ...
vaspurakan's user avatar
1 vote
1 answer
514 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 ...
MarkoP's user avatar
  • 175
0 votes
0 answers
85 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 "...
debugging XD's user avatar
0 votes
1 answer
27 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 ...
user2653897's user avatar
0 votes
0 answers
16 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?
Rwy5's user avatar
  • 161
1 vote
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 ...
Schimay's user avatar
  • 159
-1 votes
1 answer
1k 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?
Wasi's user avatar
  • 1
0 votes
1 answer
322 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. ...
ndarkness's user avatar
  • 113
-1 votes
1 answer
301 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 ...
Wasi's 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 ...
Kho's user avatar
  • 93