Risposto
pulse train with gaussian pulses in an irregular interval
Can't the d input to pulstran be set to whatever offsets you want, random or otherwise? Taking the example from the pulstran do...

circa 5 anni fa | 0

Risposto
Unable to find explicit solution to a very simple equation
The equation in the question is an inequality, but the supposed solution posed in the question is for an equality: syms x real ...

circa 5 anni fa | 1

| accettato

Risposto
How to load matlabFunction output into Simulink
matlabFunctionBlock can be used to generate a block directly into the Simulink model from the symbolic expression. It will only...

circa 5 anni fa | 1

Risposto
Solving nonlinear system of ode in Simulink
The best way IMO is to get the equations in the form xdotdot = f(p,u,x,xdot), which you already did. But what did you mean by "...

circa 5 anni fa | 0

Risposto
How to count number of pulses in a signal in Simulink
Similar problem addressed in this link.

circa 5 anni fa | 0

Domanda


How do I get an Expression to Use the Value of a Variable that was Assigned after the Expression was Defined?
Suppose I assign to a sym as follows: syms z f g Define f in terms of z f = 2*z Now assign a value to z z = sym(2)*1i; But...

circa 5 anni fa | 1 risposta | 0

1

risposta

Risposto
How to change Axes values to 'String' instead of 'numbers' on Simulink Scope?
Make the signal input to the scope a Simulink Enumeration type.

circa 5 anni fa | 1

| accettato

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

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

circa 5 anni fa | 0

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

circa 5 anni fa | 0

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

circa 5 anni fa | 0

Risposto
s domain to complex domain?
Some functions that may be of interest: doc freqresp doc abs

circa 5 anni fa | 0

| accettato

Risposto
LTI s domian to z domain tranformation
The c2d() function offers several options doc c2d

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

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

circa 5 anni fa | 1

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

circa 5 anni fa | 0

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

circa 5 anni fa | 0

| accettato

Risposto
rearrange an equation in simulink
I'm not necessarily recommending this, but since you asked you can try an Algegbraic Constraint block.

circa 5 anni fa | 2

Risposto
Is there a block in Simulink to load equations in state variables ?
This one? State Space

circa 5 anni fa | 0

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 0

| accettato

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

circa 5 anni fa | 1

| accettato

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

circa 5 anni fa | 1

| accettato

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

circa 5 anni fa | 1

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

circa 5 anni fa | 0

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

circa 5 anni fa | 0

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

circa 5 anni fa | 1

| accettato

Carica altro