Risposto
Fourier transform of symbolic function
Hi soup, The Fourier transform of x is syms t w; x=sin(2*t); fourier(x) fplot() ignores Dirac delta functions. Because ther...

circa 4 anni fa | 0

| accettato

Risposto
Plotting natural frequency, 0 input, developing transfer function
Hi Brent, The modeling equation as stated does not include a forcing input, so there is no transfer fucntion to speak of. If we...

circa 4 anni fa | 0

Risposto
How to change the transfer function variable in simulink during simulation time
Hi Swasthik, If I understand correctly, the R and C values are changing dynamically. Just use blocks (integrators, subtraction,...

circa 4 anni fa | 0

Risposto
I need to model this equation in simulink.
Assuming the Qeustion is about specific values of t and Ts, i.e., integrate a signal over an interval .... Put the integrator i...

circa 4 anni fa | 0

Risposto
How do we modify the tails of norrmal/any kind of distribution by keeping other portion is same?
Hard to say much, at least for me, without knowing more details about the starting PDF and how the tails are going to be modifie...

circa 4 anni fa | 0

| accettato

Risposto
Reconstructed Pulse Out of Phase
Hi Doug, I think the short answer is, don't use nextpow2. Fs = 100; %Sampling Frequency t = -0.5:1/Fs:0.5; %Time Vecto...

circa 4 anni fa | 0

| accettato

Risposto
'dare' command from Control toolbox doesn't work in the Simulink's 'Matlab Function' block
In the Matlab Function block, declare dare with coder.extrinsic. See this doc page

circa 4 anni fa | 0

Risposto
linear independent set formation
A set of functions fi(t) is linearly indepenedent if the only solution to a1*f1(t) + a2*f2(t) .... an*fn(t) = 0 (1) is ai = 0 ...

circa 4 anni fa | 0

Risposto
Triggering Simulink simulation through GUI does not send data from simulink to workspace.
Hi Amartya, Does this answer help?

circa 4 anni fa | 0

Risposto
sim command in Matlab and ToWorkspace in SIMULINK dont work togheter?
Hi Benjamin, Specify an ouput argument for the sim command, like so: ouputdata = sim('mymodel'); All of the ToWorkspace block...

circa 4 anni fa | 0

| accettato

Risposto
How to use the values of an array as inputs for a function?
Assuming the function resturns a scalar .... Will a simple loop suffice? c = num2cell(rand(10,6)); y = zeros(size(c,1),1); f...

circa 4 anni fa | 1

Risposto
How to create a vector in simulink? I have given an input which has 2 values, one is flow and another is temperature. I don't know how to simulate this model, Kindly, help me
Vector signals are commonly created in one of two ways. Define the parameters of any source block such that it ouputs a vector ...

circa 4 anni fa | 0

Risposto
Plotting the convolution of u(t) * dirac(t)
Hi Jeremy, The equation for the convolution integral in the Question is incorrect. The argument of u inside the integral should...

circa 4 anni fa | 1

Risposto
exp( ) gives unexpected answer for (2,2) input
Seems to give the expected result? a= [1.4142 1.4121; 1.4142 1.4121] exp(j*2*pi*a*10^3)

circa 4 anni fa | 0

Risposto
Hi all,I want to use matlab to calculate the exponential integral,I know that the official function ExpIntegralE in Mathematica can calculate it.
ExpIntegralE in Mathematica seems to be the same as the two-argument form of expint in the Symbolic Math Toolbox.

circa 4 anni fa | 0

| accettato

Risposto
How do I take the average of elements of a vector depending on the values of another vector?
This common workflow is discussed here: splitapply A = [2 3 2 2 3 4 3 3]; B = [0.1 0.2 0.22 0.13 0.07 0.88 0.3 0.5]; [G,ID]=f...

circa 4 anni fa | 0

Domanda


filtfilt Does Not Perform Zero-Phase Filtering. Does It Matter?
The doc page for filtfilt claims that the function "performs zero-phase digital filtering" and then goes on to describe the expe...

circa 4 anni fa | 1 risposta | 0

1

risposta

Risposto
Using root function to complete the turning point function that solves the derivates of a polynomial
Hi Laidog, I suggest starting with this doc page. It will show how to reperesent and analyze polynomials in Matlab and contains...

circa 4 anni fa | 0

Risposto
Sum of series (symsum) in Simulink
I was able to get a workable soluion using only Simulink blocks by setting up the equation and solving for mu with an Algebraic ...

circa 4 anni fa | 0

| accettato

Risposto
Solution of differential equation
Simulink provides many optiions for exporting simulation data to the Matlab workspace, after which one can anlayze it, process i...

circa 4 anni fa | 0

Risposto
Finding the H infinity norm of a system
Following up on this comment ... Can the equations not be writen in state space form only because it's impractical to do so, or ...

circa 4 anni fa | 0

Risposto
Constant block doesn't accept array
What is the value of A in the base workspace? Or whatever workspace it lives in. Note that “A” in the From and GoTo blocks ha...

circa 4 anni fa | 0

| accettato

Risposto
Deconvolution of signal 1 from a known signal 2
I'm pretty sure that any DFT (fft()) based method will have limitiations, but we can try as follows. Assume that the system mod...

circa 4 anni fa | 1

Risposto
I want to plot a complex function f(z) in 3D
f(z) can be defined by: f = @(z) conj(z)./z; As for the plot, that depends on the kind of plot that's desired. Here's a plot ...

circa 4 anni fa | 0

Risposto
Step change in model parameters - simulate load step response with internal states as starting point
Hi J B, Example system sys1 = rss(2); Use step to generate the initial step response and collect the state variables [y1,t1,...

circa 4 anni fa | 0

| accettato

Risposto
I designed a filter in matlab, but it's pass band seems to be central symmetry.
HI 瑶 何 Hard to say much without seeing the actual data or the full code used to generate the plots. Having said that, it appear...

circa 4 anni fa | 0

| accettato

Risposto
Define matrix array as functions
If you're trying to store M1 for all values of n, then M1 needs to be 2 x 2 x n M1(:,:,n) = [M1a(n) M1b(n);M1c(n) M1d(n)]; Con...

circa 4 anni fa | 0

| accettato

Risposto
Solution for the multiple repetition of Simulink simulation
Check out Simulation in the doc. The links from that page should provide lots of relevant information.

oltre 4 anni fa | 1

Risposto
How do I obtain the transfer function of this model? Simulink Linearization
Hi Jacob, The Simulink linearization is coming up with the correct answer as far as I can tell: r3=0.0254; %R3 (meters) r2=0....

oltre 4 anni fa | 0

| accettato

Carica altro