Answered
Is there a way to change the value of the transfer function through MATLAB & Simulink?
Hi 영탁 한, My interpretation of your question is that you really have a second order, time varying system. Such a system can't be...

3 years ago | 1

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
At line 45 the variable Ybuskron is a 2 x 2 matrix and E(i) is a 1 x 1 scalar. So their product is a 2 x 2 matrix, which is tryi...

3 years ago | 0

Answered
Digital Signal Processing Filters
Hi Mustafa, Not checking all of the code in detail, but I did notice that the fft plots don't look correct. They should be: f ...

3 years ago | 0

Answered
Tuning a PID controller to desired Overshoot, settling time and rise time
The CST offers some tools to do this. Start from this doc page. Or from this doc page if you want to use Simulink. Here is an ...

3 years ago | 0

Answered
convolution of two syms signal
If you know the definition of the convolution integral, try to use int to compute it.

3 years ago | 0

Answered
How to plot the Eular Transformation?
The Control System Toolbox, for unknown reasons, doesn't support the forward or backward Euler transformations. I'm not aware of...

3 years ago | 0

| accepted

Answered
unable to find median of a set of signals in simulink
Very surprised that base Simulink doesn't have a block to compute the median of signal. If you don't have access to the DSP Syst...

3 years ago | 0

Answered
How to define this variable on MATLAB
Hi @Yakoob We can use the Symbolic Math Toolbox as one option Set up the equations r0=0.05; k1=0.5; mu=0.5; rho=0.5; k2=0...

3 years ago | 0

Answered
How does freqresp work with systems with internal delays?
Hi Philippe, As best I can tell, the functional process is as follows. Referring to diagram under the "Description" of setDelay...

3 years ago | 0

| accepted

Answered
solve equation with symbolic variables
Hi Milan With a mix of syms and anonymous functions and a call to fsolve using a symbolic equation, I wasn't sure if the desire...

3 years ago | 0

Answered
Why isn't low pass filter centered around zero?
Hi Paul, The fft length is odd, so the computation of xFreq needs to be as shown below. N=120; Ap = 0.01; Ast = 80; Rp = (1...

3 years ago | 1

| accepted

Answered
How do you do a sine transform in Matlab?
It appears that the sine transform can be computed from the Fourier transform. Example with a simple function syms t w xi real...

3 years ago | 0

Answered
How to determine and adjust the x axis after taking the 1D FFT?
Hi L'O.G. Let Y be the output of fft (with or without zero padding) Let NFFT = numel(Y) Let Ts = dt = t(2) - t(1) and Fs = 1/...

3 years ago | 0

Answered
Different margins using Bode and allmargin
allmargin returns the gain margin in absolute units, not dB. Converting the allmargin result to dB yields: 20*log10(11.1664) m...

3 years ago | 0

Answered
lowpass butterworth magnitude response
Hi Võ The zp2sos command in the code returns a second output, g, which is a gain that has to be applied to the filter response....

3 years ago | 0

| accepted

Answered
Last graph is plotted with no data points(figure 3) dont know why
Hi Gophela, See below for probable error in calculation of Signal_Attenuation and correction. clc; clear all; close all; % ...

3 years ago | 0

Answered
Too many input arguments: error in ODE45
Hi Shreshtha, The function handle input to ode45 needs to take two arguments: t and x. Also, the matrix multiply defined in fun...

3 years ago | 1

| accepted

Answered
Symbolic Toolbox Solving for Zeros
Hi Ryan, fzero is not used in the Symbolic Math Toolbox. Instead, check into using solve or vpasolve for this problem.

3 years ago | 1

Answered
I want to loop over these non linear equations
Hi nour From only the perspective of getting the code to run ... It looks like the code will run if, at a minimum, we don't ke...

3 years ago | 0

| accepted

Question


Why Does get_param(gcb,CompiledPort*) Return Weird Results for Several Object Parameters ?
I have the following very simple model that has been compiled and simulated in Normal mode Verify the Constant block is selec...

3 years ago | 1 answer | 0

1

answer

Answered
Convolution example: inputA[64],InputB[64] and Output[128]
Hi AndyK, I'm going to assume that N = na + nb - 1, where na and nb are the lengths of a[n] and b[n] respectively. Under this a...

3 years ago | 0

Answered
calculate and fill an area between a line and a curve
Hi Enzo, I think fill is what you might be looking for. Assuming that (x1,y1) and (x2,y2) are points on the blue data curve as ...

3 years ago | 0

Answered
Plotting a multivariable function, that also has a summation
Hi Ali, Another approach that you might be interested in, which is less code but requires more memory, is to use an anonymous f...

3 years ago | 0

Answered
How to increase quiver density
Hi Joseph, Use a finer mesh for setting up X and Y: n = 3; m = 1; beta = 3; gamma = 1; alpha1 = 1; alpha2 = 1; startv = ...

3 years ago | 1

Answered
can program tell if SISO or MIMO
Your code looks correct for determining whether or not a system is SISO G1 = tf([2 0], [1 2]); G2 = tf([1 -1], [1 6 15]); sys...

3 years ago | 0

Answered
How do I assign a 1x 50 cell array to a struct Scalar structure required for this assignment
Hi Ted, Assuming you want to assign the scalar content of each cell in the cell array a new field in the struct, is this what y...

3 years ago | 0

Answered
FFT error 'not supported to carry out script fft as a function'
Hi 柊介 小山内, fourier can return a closed form expression with a little help. syms t w f real T = sym(5.0)*10^(-10); roll = sym...

3 years ago | 1

| accepted

Answered
Asking about the ''delayss'' function in matlab
Hi Mohamed, Not sure if this answers your question, but ... The state space matrices shown in the output after using delayss a...

3 years ago | 0

| accepted

Answered
strange solution of an equation by Symbolic Toolbox
This is interesting. Don't understand why solve appears to be using the 12th root in its solution, looks like it should be the 8...

3 years ago | 0

| accepted

Answered
Error using sym/subsindex when doing convolution of two signals (cosine function and impulse function) in MATLAB.
As written, h is Stem object. However, to use int, h(t) needs to be defined as a symbolic function of t (in the same manner as x...

3 years ago | 0

| accepted

Load more