Respondida
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...

más de 3 años hace | 0

Respondida
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/...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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....

más de 3 años hace | 0

| aceptada

Respondida
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; % ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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.

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Pregunta


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...

más de 3 años hace | 1 respuesta | 0

1

respuesta

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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 = ...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
Find unique column values in NxN cell array
Because the resulting variables could all have a different number of elements, I'm converting each variable into a scalar cell t...

más de 3 años hace | 0

Respondida
Interpolation of cross-correlation from zero padded idft of power spectrum shows odd behavior
Hi matt, I think the issue is with how the padding is being done. See code below for that and other questions. Full disclosure:...

más de 3 años hace | 0

| aceptada

Respondida
how to plot a periodic function?
Hi Zafer, To compute the Fourier series, you really only need to define one period of the function, because the defining integr...

más de 3 años hace | 0

| aceptada

Respondida
How to get z transfer function from difference equation?
Hi Vivianne, One workflow would go like this: Define the variables and signals. Note that x is a function of k syms y(k) z x(...

más de 3 años hace | 0

Respondida
Sliding mode control simulink
Hi KAI, Do any of the integrators have a non-zero initial condition? Also, might want to consider using a variable step solver...

más de 3 años hace | 0

| aceptada

Respondida
Having symbolic in a Matrix
Hi Felis, I didn't run the code because I don't know what inputs to provide. Does changing Z2 to a sym object solve the problem...

más de 3 años hace | 0

| aceptada

Respondida
Find a specific characters in a string
Hi Miriam I'm not quite sure what you're looking for. However, transforming everything to strings might offer a path forward vi...

más de 3 años hace | 0

Respondida
How to find index of string inside a structure of cell arrays
Hi Andrew, Is this what you're looking for? load(websave('MyStruct.mat','https://www.mathworks.com/matlabcentral/answers/uploa...

más de 3 años hace | 0

| aceptada

Respondida
Display Block shows truncated data
Hi Gajana, The warning is not telling the full story and may actually be incorrect. Fron the Display block doc page: "The Disp...

más de 3 años hace | 0

Respondida
How to find number of input and output ports of an unknown simulink model ?
Hi Shiv, I started out with this model with three subsystems. Then I ran this code: % Handles to the subsystems subsystems...

más de 3 años hace | 2

| aceptada

Respondida
How to find cumulative distribution function from a given data set(vector)
Hi Shankul, I'm not sure what "I want the cdf vector" means. If that means the data that forms the cdf plot on the graph, then ...

más de 3 años hace | 0

| aceptada

Cargar más