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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 1

| accettato

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

quasi 4 anni fa | 1

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

quasi 4 anni fa | 0

| accettato

Domanda


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

quasi 4 anni fa | 1 risposta | 0

1

risposta

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 1

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 1

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 2

| accettato

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

quasi 4 anni fa | 0

| accettato

Carica altro