답변 있음

How to create a vector of symbolic variables with specific labeling

v = [1 2 3 5 7 9 10 12 18 29]; vsym = sym('x',[v(1) v(end)]); vsym=vsym(v)

How to create a vector of symbolic variables with specific labeling

v = [1 2 3 5 7 9 10 12 18 29]; vsym = sym('x',[v(1) v(end)]); vsym=vsym(v)

약 1달 전 | 0

| 수락됨

답변 있음

speed up integrating the same function over many overlapping intervals?

In your question you said that fn is continuous. If it's sufficiently smooth, ideally with continuous first derivative, you can ...

speed up integrating the same function over many overlapping intervals?

In your question you said that fn is continuous. If it's sufficiently smooth, ideally with continuous first derivative, you can ...

약 1달 전 | 0

답변 있음

Fourier Transform in terms of frequency instead of angular frequency

WRT to the first part of your question, the answer is yes. The parameters of the Fourier transform can be set via sympref syms ...

Fourier Transform in terms of frequency instead of angular frequency

WRT to the first part of your question, the answer is yes. The parameters of the Fourier transform can be set via sympref syms ...

약 1달 전 | 0

답변 있음

simulate free fall project, ode45, using reynolds no to get drag coefficient, recursive problem

Check your intiial conditions. At t = 0, ydot = 0, which yields Re == 0, which then yields isnan(C_D) == true, and subsequently...

simulate free fall project, ode45, using reynolds no to get drag coefficient, recursive problem

Check your intiial conditions. At t = 0, ydot = 0, which yields Re == 0, which then yields isnan(C_D) == true, and subsequently...

약 1달 전 | 0

답변 있음

Issues with Simulink unit delay

Using a unit delay is probably not what you want, because the output of the delay is held constant until the next sample time. ...

Issues with Simulink unit delay

Using a unit delay is probably not what you want, because the output of the delay is held constant until the next sample time. ...

약 1달 전 | 0

답변 있음

s domain to complex domain?

Some functions that may be of interest: doc freqresp doc abs

s domain to complex domain?

Some functions that may be of interest: doc freqresp doc abs

약 1달 전 | 0

| 수락됨

답변 있음

LTI s domian to z domain tranformation

The c2d() function offers several options doc c2d

LTI s domian to z domain tranformation

The c2d() function offers several options doc c2d

약 1달 전 | 0

| 수락됨

답변 있음

How can I apply step signal input to a system after 20secs of delay?

Set the InputDelay property of the system to 20. If h is the system h.InputDelay = 20; step(h,opt)

How can I apply step signal input to a system after 20secs of delay?

Set the InputDelay property of the system to 20. If h is the system h.InputDelay = 20; step(h,opt)

약 1달 전 | 0

답변 있음

doublet responce of doublet input

Can you express the doublet as a sum of unit step functions, eahc of which are appropriately scaled and delayed? If so, and you...

doublet responce of doublet input

Can you express the doublet as a sum of unit step functions, eahc of which are appropriately scaled and delayed? If so, and you...

약 1달 전 | 0

| 수락됨

답변 있음

Using ODE45 with 4 states on a double particle pendulum

Hi Raaed, Why use symbolic when you alredy have a closed form expressions for the differential equations? Usually, the Symbolic...

Using ODE45 with 4 states on a double particle pendulum

Hi Raaed, Why use symbolic when you alredy have a closed form expressions for the differential equations? Usually, the Symbolic...

약 2달 전 | 0

답변 있음

convert 1x1 double time series data of simout in matlab to 1441 x 1 double

You can convert the timeseries to ordinary Matlab variables time = simout.Time; data = simout.Data;

convert 1x1 double time series data of simout in matlab to 1441 x 1 double

You can convert the timeseries to ordinary Matlab variables time = simout.Time; data = simout.Data;

약 2달 전 | 0

답변 있음

How can I count how many times the position of a bouncing ball on the simulator hits 0?

Drag a Triggered Subsystem into the diagram. Connect the output of the <=0 block to the trigger input of the Triggered Subsyste...

How can I count how many times the position of a bouncing ball on the simulator hits 0?

Drag a Triggered Subsystem into the diagram. Connect the output of the <=0 block to the trigger input of the Triggered Subsyste...

약 2달 전 | 0

답변 있음

simulink-function block

This line (and others like it) doesn't do what you think it does: 68.832 < u <= 200 Consider: u = 203; 68.832 < u <= 200 Th...

simulink-function block

This line (and others like it) doesn't do what you think it does: 68.832 < u <= 200 Consider: u = 203; 68.832 < u <= 200 Th...

약 2달 전 | 0

| 수락됨

답변 있음

rearrange an equation in simulink

I'm not necessarily recommending this, but since you asked you can try an Algegbraic Constraint block.

rearrange an equation in simulink

I'm not necessarily recommending this, but since you asked you can try an Algegbraic Constraint block.

약 2달 전 | 2

답변 있음

Is there a block in Simulink to load equations in state variables ?

This one? State Space

Is there a block in Simulink to load equations in state variables ?

This one? State Space

약 2달 전 | 0

답변 있음

Recurrence Relation having undefined variables

Do you get the desired result if you move the line syms lamda c0 c1 to inside the function? Also it's kind of confusing to ha...

Recurrence Relation having undefined variables

Do you get the desired result if you move the line syms lamda c0 c1 to inside the function? Also it's kind of confusing to ha...

약 2달 전 | 0

| 수락됨

답변 있음

Simulink block to get the specified value

One option to grab the value of a signal at a certain time and hold it afterwards is to pass it through a Triggered Subsystem, w...

Simulink block to get the specified value

One option to grab the value of a signal at a certain time and hold it afterwards is to pass it through a Triggered Subsystem, w...

약 2달 전 | 0

| 수락됨

답변 있음

Why do i get error while converting Block diagram to transfer function?

The problem is with this line: [a, b, c, d] = ss2tf(connect(G1,G2,G3,sum1,sum2,sum3,'r','y')) ss2tf only computes 2 outputs, b...

Why do i get error while converting Block diagram to transfer function?

The problem is with this line: [a, b, c, d] = ss2tf(connect(G1,G2,G3,sum1,sum2,sum3,'r','y')) ss2tf only computes 2 outputs, b...

약 2달 전 | 1

| 수락됨

답변 있음

I am trying to solve 3 simultaneous ODE's. Which method to use?

This line: dy = zeros(4,1); Needs to be replaced with: dy = zeros(3,1); After that, note that the equation for dy(1) evaluat...

I am trying to solve 3 simultaneous ODE's. Which method to use?

This line: dy = zeros(4,1); Needs to be replaced with: dy = zeros(3,1); After that, note that the equation for dy(1) evaluat...

약 2달 전 | 1

| 수락됨

답변 있음

Step response error when using step

An improper transfer function has a numerator with higher order than the denominator. In your case, the numerator is second ord...

Step response error when using step

An improper transfer function has a numerator with higher order than the denominator. In your case, the numerator is second ord...

약 2달 전 | 0

답변 있음

From numerical FFT to zero-pole diagram

Poles and zeros are based on the transfer function, which relates the output to the input. So in addition to the output signal, ...

From numerical FFT to zero-pole diagram

Poles and zeros are based on the transfer function, which relates the output to the input. So in addition to the output signal, ...

약 2달 전 | 0

답변 있음

how to concat two strings with data from external file inbetween?

One approach, I'm sure there are others: first = "Simpson"; last = "Wilder"; nums = string(readmatrix('input.txt')); out = ...

how to concat two strings with data from external file inbetween?

One approach, I'm sure there are others: first = "Simpson"; last = "Wilder"; nums = string(readmatrix('input.txt')); out = ...

약 2달 전 | 0

답변 있음

How to fit a gaussian to unnormalized data

I think you need to normalize Y by it's sum (given the unit spacing of X), not its max X = -6:1:6; Y = [1 3 1 8 5 16 18 10 6 2...

How to fit a gaussian to unnormalized data

I think you need to normalize Y by it's sum (given the unit spacing of X), not its max X = -6:1:6; Y = [1 3 1 8 5 16 18 10 6 2...

약 2달 전 | 1

| 수락됨

답변 있음

Knowing the closed form solution of dx/dt = 2 sin 3t − 4x, how do I construct my Simulink?

So you need to express -cos(3*t + atan(4/3)) as the sum of two sine waves. If you're allowed to make the amplitude of one of ...

Knowing the closed form solution of dx/dt = 2 sin 3t − 4x, how do I construct my Simulink?

So you need to express -cos(3*t + atan(4/3)) as the sum of two sine waves. If you're allowed to make the amplitude of one of ...

약 2달 전 | 1

| 수락됨

답변 있음

Advices on realizing a decreasing pulsing function with Simulink.

It sounds like what you want is the input, u, to be the cumulative ON-time, and the output, m_dot, should be zero when the drivi...

Advices on realizing a decreasing pulsing function with Simulink.

It sounds like what you want is the input, u, to be the cumulative ON-time, and the output, m_dot, should be zero when the drivi...

약 2달 전 | 1

| 수락됨

답변 있음

Matrix slicing in matlab

Use mat2cell x = rand(4,2); % the matrix c = mat2cell(x,[2 2],2); % the cell array % verify c{1} - x(1:2,:) c{2} - x(3:4,:)...

Matrix slicing in matlab

Use mat2cell x = rand(4,2); % the matrix c = mat2cell(x,[2 2],2); % the cell array % verify c{1} - x(1:2,:) c{2} - x(3:4,:)...

약 2달 전 | 0

답변 있음

Unable to set gain control as a variable in Simulink, setting a numeric value works OK.

It turns red with the exclamation mark because you haven't defined the variable in any workspace that the model can see (typical...

Unable to set gain control as a variable in Simulink, setting a numeric value works OK.

It turns red with the exclamation mark because you haven't defined the variable in any workspace that the model can see (typical...

약 2달 전 | 0

질문

Sym Matrices can be Indexed with non-Logical/non-Integer. Bug?

Linear indexing into a sym array: A = sym([1 2;3 4]) A(.5) A(1.1) A([1.2 2.2]) But element indexing produces an error A(1...

약 2달 전 | 답변 수: 0 | 1

답변 있음

What Happened to the SrcWorkspace Name-Value Input to the sim() Command?

Looks like one has to use a Simulink.SimulationInput object as the input to the sim() command.

What Happened to the SrcWorkspace Name-Value Input to the sim() Command?

Looks like one has to use a Simulink.SimulationInput object as the input to the sim() command.

약 2달 전 | 0

답변 있음

How update some variables each time tha I'am calling simulink from Matlab funtion

Try using a Simulink.SimulationInput object. Change the code to: function [Out] = Funtion (Var1, Var2 ....) in ...

How update some variables each time tha I'am calling simulink from Matlab funtion

Try using a Simulink.SimulationInput object. Change the code to: function [Out] = Funtion (Var1, Var2 ....) in ...

약 2달 전 | 0