답변 있음

FT and Amplitude Phase plot in matlab

The code as shown has at least two issues. When using symbolic math, need to declare variables appropriately syms t w real Bec...

FT and Amplitude Phase plot in matlab

The code as shown has at least two issues. When using symbolic math, need to declare variables appropriately syms t w real Bec...

2달 전 | 1

답변 있음

Add Fields to an existing Structure

S.Level0=0; f = {'SubLevel0','SubLevel1','SubLevel2','Text'}; cvar = '1234'; S = setfield(S,'Level1',f{:},cvar); S.Level0 S...

Add Fields to an existing Structure

S.Level0=0; f = {'SubLevel0','SubLevel1','SubLevel2','Text'}; cvar = '1234'; S = setfield(S,'Level1',f{:},cvar); S.Level0 S...

2달 전 | 2

| 수락됨

답변 있음

please help to fix my code for 4th order Runge Kutta method for second order ODE.

Hi Siti Nafisah Bekti Lelana, Why do you think it's the wrong answer? I didn't check the equations, but the code seems to yield...

please help to fix my code for 4th order Runge Kutta method for second order ODE.

Hi Siti Nafisah Bekti Lelana, Why do you think it's the wrong answer? I didn't check the equations, but the code seems to yield...

2달 전 | 0

답변 있음

calculate the Γ matrix in MATLAB from Φ Matrix - State space equation

Let's see what we have so far: A = [0 1; -1 -1]; b = [0;1]; I = eye(2); syms s; LaplaceTransitionMatrix = (s*I-A)^-1 phi =...

calculate the Γ matrix in MATLAB from Φ Matrix - State space equation

Let's see what we have so far: A = [0 1; -1 -1]; b = [0;1]; I = eye(2); syms s; LaplaceTransitionMatrix = (s*I-A)^-1 phi =...

2달 전 | 1

| 수락됨

답변 있음

Cumulative sum in Simulink

The Discrete-Time Integrator block can be configured as an accumulator.

Cumulative sum in Simulink

The Discrete-Time Integrator block can be configured as an accumulator.

2달 전 | 1

답변 있음

How do I construct the dft response of hanning window

Hi Sahil, The code doesn't show the values of N and T used, so I'll make up my own. N = 64; % T = 1; Changed the next line s...

How do I construct the dft response of hanning window

Hi Sahil, The code doesn't show the values of N and T used, so I'll make up my own. N = 64; % T = 1; Changed the next line s...

2달 전 | 0

| 수락됨

질문

Does surf() Behave as Expected with ndgrid() Inputs?

Define a function clear f = @(x,y) x; Case 1: square mesh, meshgrid, vector inputs to surf x = 0:5; y = 100:105; [Xmesh,Ym...

2달 전 | 답변 수: 1 | 0

답변 있음

Calculate convolution of two given continuous signals in matlab

Closed form solution using symbolic math syms t tau real f1(t) = rectangularPulse(-5,5,t); f2(t) = exp(-t)*heaviside(t); y1(...

Calculate convolution of two given continuous signals in matlab

Closed form solution using symbolic math syms t tau real f1(t) = rectangularPulse(-5,5,t); f2(t) = exp(-t)*heaviside(t); y1(...

2달 전 | 1

| 수락됨

답변 있음

Why does MATLAB (Symbolic Math Toolbox) not integrate this simple function.

syms x a real I = int(simplify((1-x^2/a^2)^(3/2)),x,-a,a)

Why does MATLAB (Symbolic Math Toolbox) not integrate this simple function.

syms x a real I = int(simplify((1-x^2/a^2)^(3/2)),x,-a,a)

2달 전 | 0

답변 있음

Behavior of isPassive and hinfnorm.

Hi Siva, I'm not able to load the .mat file, so can't really look at the problem. load('https://www.mathworks.com/matlabcentra...

Behavior of isPassive and hinfnorm.

Hi Siva, I'm not able to load the .mat file, so can't really look at the problem. load('https://www.mathworks.com/matlabcentra...

2달 전 | 1

답변 있음

Question on use of fft and using positive frequency values only

Is this just an indexing question? If I understand the code snippet correctly, the frequency vector starts at 0, and incremente...

Question on use of fft and using positive frequency values only

Is this just an indexing question? If I understand the code snippet correctly, the frequency vector starts at 0, and incremente...

2달 전 | 0

| 수락됨

답변 있음

How do I solve a symbolic system for a certain vector?

Hi Vitor, To make sure I understand the question, it assumes that a rigid body can have a constant, non-zero angular velocity v...

How do I solve a symbolic system for a certain vector?

Hi Vitor, To make sure I understand the question, it assumes that a rigid body can have a constant, non-zero angular velocity v...

2달 전 | 1

답변 있음

Adding a delay in state space form

The command sys=ss(A,B,C,D,'InputDelay',theta,'OutputDelay',0); puts a delay on the input signal, i.e., at the output of the a...

Adding a delay in state space form

The command sys=ss(A,B,C,D,'InputDelay',theta,'OutputDelay',0); puts a delay on the input signal, i.e., at the output of the a...

2달 전 | 0

| 수락됨

답변 있음

DFT amplitude differs from CFT amplitude

Hi An, A couple of issues with the code, addressed below. T_ech = 5E-5; y = [0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0]; t = [T_ec...

DFT amplitude differs from CFT amplitude

Hi An, A couple of issues with the code, addressed below. T_ech = 5E-5; y = [0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0]; t = [T_ec...

2달 전 | 0

| 수락됨

답변 있음

Step response and Impulse response of IIR filter

Hi Alex, It would be helpful to know the value of temp. Absent that, it seem like [hstep,tstep] = stepz(sos); hstep = hstep*...

Step response and Impulse response of IIR filter

Hi Alex, It would be helpful to know the value of temp. Absent that, it seem like [hstep,tstep] = stepz(sos); hstep = hstep*...

2달 전 | 0

| 수락됨

답변 있음

Incorrect Integrator Behaviour Simulink

It looks like the input sine wave is sin(2*pi/2*t) = sin(pi*t) The output of the integrator should be -1/pi*cos(pi*t) + C B...

Incorrect Integrator Behaviour Simulink

It looks like the input sine wave is sin(2*pi/2*t) = sin(pi*t) The output of the integrator should be -1/pi*cos(pi*t) + C B...

2달 전 | 1

| 수락됨

답변 있음

Change the size of a log in simulink

Double click the ToWorkspace block and increase the Decimation parameter. If you really need all of the data, maybe something m...

Change the size of a log in simulink

Double click the ToWorkspace block and increase the Decimation parameter. If you really need all of the data, maybe something m...

3달 전 | 0

답변 있음

Designing an Observer - Control System

I don't think you're going wrong anywhere (though you might want use size(Aa,1) instead of length(Ca) in a few places). I think ...

Designing an Observer - Control System

I don't think you're going wrong anywhere (though you might want use size(Aa,1) instead of length(Ca) in a few places). I think ...

3달 전 | 0

답변 있음

Plot a 2D Gaussian prior

Something like this? mu = [1 1]; Sigma = [1 .7*1*sqrt(2); .7*1*sqrt(2) 2]; [X,Y] = meshgrid(-2:.1:4); p = mvnpdf([X(:) Y(:)]...

Plot a 2D Gaussian prior

Something like this? mu = [1 1]; Sigma = [1 .7*1*sqrt(2); .7*1*sqrt(2) 2]; [X,Y] = meshgrid(-2:.1:4); p = mvnpdf([X(:) Y(:)]...

3달 전 | 0

| 수락됨

답변 있음

Calculate convolution of two given continuous signals in matlab

Assuming a closed form solution is desired this problem can be solved with the Symbolic Math Toolbox syms rectangularPulse in...

Calculate convolution of two given continuous signals in matlab

Assuming a closed form solution is desired this problem can be solved with the Symbolic Math Toolbox syms rectangularPulse in...

3달 전 | 1

답변 있음

Why do the eul2quat and quaternion functions differ on the calculated results?

Hi cui, I think that both eul2quat and quaternion('frame') are using, right-handed, intrinsic rotations and the sequence of rot...

Why do the eul2quat and quaternion functions differ on the calculated results?

Hi cui, I think that both eul2quat and quaternion('frame') are using, right-handed, intrinsic rotations and the sequence of rot...

3달 전 | 0

답변 있음

roots(x) vs root= interp1(y,x,0)

The query points in x are spaced too far apart for the linear interpolation used by interp1 to be accurate relative to the actua...

roots(x) vs root= interp1(y,x,0)

The query points in x are spaced too far apart for the linear interpolation used by interp1 to be accurate relative to the actua...

3달 전 | 0

답변 있음

Fourier transform of a rectangular pulse

Hi Luke, Your original code was o.k. except for plotting against t. It is typically plotted against an array of frequencies. Al...

Fourier transform of a rectangular pulse

Hi Luke, Your original code was o.k. except for plotting against t. It is typically plotted against an array of frequencies. Al...

3달 전 | 1

답변 있음

Calculation of Phase margin

Hi T, it's a tricky problem becase of the shape of the gain curve around the phase cross over frequency. w=1.4910; k=sqrt((w^4...

Calculation of Phase margin

Hi T, it's a tricky problem becase of the shape of the gain curve around the phase cross over frequency. w=1.4910; k=sqrt((w^4...

3달 전 | 0

| 수락됨

답변 있음

Find the impulse response

Hi Marina, Sometimes the Symbolic Math Toolbox works in mysterious ways and it is difficult to manipulate expressions into simp...

Find the impulse response

Hi Marina, Sometimes the Symbolic Math Toolbox works in mysterious ways and it is difficult to manipulate expressions into simp...

3달 전 | 1

| 수락됨

답변 있음

Function 'odeToVectorField' introduces undesired 'free' variable

By default, the Symbolic Toolbos assumes all variables are complex. So using the ' operator, which is the complex transpose oper...

Function 'odeToVectorField' introduces undesired 'free' variable

By default, the Symbolic Toolbos assumes all variables are complex. So using the ' operator, which is the complex transpose oper...

3달 전 | 2

| 수락됨

답변 있음

Within a script, can I close or redirect a Windows File Explorer window opened with 'winopen'?

Maybe using an actxserver is a viable approach. I've used it for interacting with Power Point. It's not so bad once you get the...

Within a script, can I close or redirect a Windows File Explorer window opened with 'winopen'?

Maybe using an actxserver is a viable approach. I've used it for interacting with Power Point. It's not so bad once you get the...

3달 전 | 0

답변 있음

How can I remove this error?

Either: a) double click on the Audio Device Writer block and uncheck the box for Inherit Sample Rate from Input and set the des...

How can I remove this error?

Either: a) double click on the Audio Device Writer block and uncheck the box for Inherit Sample Rate from Input and set the des...

3달 전 | 0

| 수락됨