Community Profile

photo

Paul


Last seen: Today 2011 이후 활성

Statistics

All
  • Guiding Light
  • 24 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 5
  • Revival Level 1
  • First Answer
  • Solver

배지보기

Content Feed

보기 기준

답변 있음
how to inverse transfer function simulink
Hi Stanley. First off you'll need to factor out the exp(-s) and implement that with a Transport Delay block. For the non-prope...

2일 전 | 0

답변 있음
Transformation of state space model
It sounds like the Question is about forming a feedback loop. In this case use feedback.

2일 전 | 0

답변 있음
How to do Feedback Loop on Simulink with different frequinces
I'm assuming the question is how to run the same simulation multiple times for different frequencies. With this assumption .... ...

3일 전 | 1

답변 있음
How to generate all possible vectors where each element can take one of two values
a = [1 2 3]; b = [4 5 6]; n = numel(a); C = mat2cell([a; b],2,ones(1,n)); [D{1:n}] = ndgrid(C{:}); E = sortrows(cell2mat(...

4일 전 | 0

| 수락됨

답변 있음
how to find the right frequency axis when we take the Fourier transform of a function?
Hi Donya, By default, the frequency variable for fourier in the Symbolic Math Toolbox is in rad/sec. Also, Matlab definition o...

4일 전 | 2

| 수락됨

답변 있음
Pade approximant in Transport delay block
What exactly is the confusion? Increasing the order of the Pade approximant should have no effect on simulation run time or sim...

4일 전 | 0

| 수락됨

답변 있음
Discrete values in DFT
Hi Sahil, In general: Let x(t) be a continuous-time signal, i.e., where the inedpendent variable, t, is any real number with -...

5일 전 | 1

| 수락됨

답변 있음
matlabFunction() generating intermediate terms that place the integrand outside integral()
A couple of suggestions on the code. As a general rule IMO, it's best to specify all relevant assumptions on the variables. For...

5일 전 | 1

| 수락됨

답변 있음
help in runge kutta 4 2nd order with establishing the functions
Ok. Let y1 = q and let y2 = qdot (or y2 = q and y1 = qdot if preferred) Then the first equation we need is y1dot = qdot = y2. ...

11일 전 | 0

답변 있음
How to change from scientific form to decimal form using continuous and discrete transfer functions?
Hi Edward, It would be immensely helpful to show a simple example with an actual result and explain what the preferred result w...

11일 전 | 1

| 수락됨

답변 있음
Convert sym to double
Hi @Mark, The first problem with the code is in this area W=zeros(1,len); for i=1:len m=mn{f}(i) W(...

11일 전 | 1

| 수락됨

답변 있음
Function solve cannot find explicit solution with 'ReturnConditions'=true but it finds when it is false
Verifying same behavior in 2022a syms t2 t a b ab at bt a2 b2 N x T T0 k assume(N ~= 0 & T ~= 0 & k ~= 0) eq1 = ab == a2*x + ...

11일 전 | 0

답변 있음
simplify function does not work properly
Consider a simpler case syms x y term1 = x - 1; term2 = y - 2; eq = term1*term2 assume(term1*term2 == 0) simplify(eq) sim...

11일 전 | 0

| 수락됨

답변 있음
Closed form not the same as the discrete form
Hi Tworit, I'm not quite following how the code is trying to implement equation 41 from the linked page. Here is one way to cre...

13일 전 | 0

| 수락됨

답변 있음
Removing all elements from a struct field
Does rmfield meet the need? % create a struct for example for ii=1:13 aap.acq_details.sessions(ii).name = ii; end aap.acq_d...

13일 전 | 0

답변 있음
Graphs using ode45 do not look like they should. Why is time vector not a linear set?
Hi Josh, Maybe the plots are deceptive. Running the code exactly as given, except for the plotting, shows that v is the derivat...

14일 전 | 0

답변 있음
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...

15일 전 | 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...

15일 전 | 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...

16일 전 | 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 =...

17일 전 | 1

| 수락됨

답변 있음
Cumulative sum in Simulink
The Discrete-Time Integrator block can be configured as an accumulator.

18일 전 | 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...

19일 전 | 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...

20일 전 | 답변 수: 1 | 0

1

답변

답변 있음
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(...

22일 전 | 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)

23일 전 | 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...

23일 전 | 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...

24일 전 | 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...

26일 전 | 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...

26일 전 | 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...

26일 전 | 0

| 수락됨

더로드