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

보기 기준

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

약 6시간 전 | 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...

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

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

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

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

3일 전 | 0

답변 있음
I'm not sure if a user defined MATLAB function is executing or not in Simulink.
Consider replacing the threshold crossing detection functionality in spike_checker with a self resetting integrator. Feed the s...

3일 전 | 0

답변 있음
Different results when compearing DFT from fft to the "real" fourier transformation
Hi Lillebror, Referring only to the code in the original question, it looks like there is a mix up between the variables used t...

3일 전 | 1

답변 있음
What frustrates you about MATLAB? #2
It would be nice if I could open a file in the editor as read-only, click somewhere to set the editor for read only after a file...

4일 전 | 0

답변 있음
Most effective way to solve nonhomogeneous linear ODE problem
Hello Michal, Following up on this comment, I'd be concerned about the solution of the "reference" method if that's what's bein...

4일 전 | 1

답변 있음
Discrete Transfer Function Truncating Signal?
If the sample time of the DTF block is 0.3, and the simulation runs for 20.1 - 20.39999999 seconds, there should be 20.1/0.3 = 6...

12일 전 | 0

답변 있음
Simplify Transfer Function Matrix from State Space Form
Hi Diego, It looks like the code used the Symbolic Math Toolbox? If so, there's no need to go that route unless you really nee...

16일 전 | 0

| 수락됨

답변 있음
nufft wrong result ?
Hello Kraka, Have you tried setting up your query points to exactly include f = 0.025? Also, it wasn't clear why the plot comma...

16일 전 | 0

| 수락됨

답변 있음
How to find the eigenvectors for multiple degree of system?
Hello KG, Divide each mode shape by its first element so that the first element of each mode shape is unity. M=[3 2 1;2 2 1;1 ...

16일 전 | 1

질문


Does ArrayValued Affect the Efficiency of Integral()
Suppose I want to numerically integrate a function of a scalar that returns a vector f = @(x) [1 ; sin(1000*x)]; To integrate ...

16일 전 | 답변 수: 1 | 1

1

답변

답변 있음
mirroring a magnitude response of a filter from -1 to 1
freqz() takes a third input that allows you to specify the frequency vector. n1= 15; %order Fs= 100; %sampling frequency fc= ...

16일 전 | 0

답변 있음
How to reformat the display output precision of e.g. the TF() function?
The function poly2str in the CST may be of interest, I think that the numerical formatting is governed by a single line, so I g...

16일 전 | 0

| 수락됨

답변 있음
partial sum of a series
Hi SSBGH, To plot the function, we need a set of x-values to plot over. As you've done, define the function and the CFS coeffi...

17일 전 | 0

답변 있음
Fourier coefficients of a function
Hi SSBGH If you want a closed form solution, use the symbolic toolbox to define f(x) syms x f(x) = .... Once you have that y...

18일 전 | 0

| 수락됨

답변 있음
Fast Fourier Transform function
The code in the question is plotting R vs index, but it sounds like the goal is to plot R vs frequency (Hz). So we need to comp...

18일 전 | 1

| 수락됨

답변 있음
How do I keep f as a variable in a state space model, as f is supposed to be the input variable??
Hello Arya, Assuming that f(t) is the input to the system, it is not included in the B-matrix. Rathe, the B-matrix should be: ...

19일 전 | 0

답변 있음
Undefined function 'hinfnorm' for input arguments of type 'tf'.
Hi Kashish, If you don't have the Robust Control Toolbox for hinfnorm(), you can probably use sigma() from the Control Systems ...

19일 전 | 0

| 수락됨

답변 있음
Plotting Root Locus In matlab with K being a positive integar
Can use r = rlocus(sys,K) where sys is the transfer function with numerator of 1 and K is a vector of positive integers of int...

20일 전 | 0

답변 있음
I am getting unrealistic values using vpasolve
I had to rearrange the second and third equations to muliply through by Vcl and sqrt(f) respectively and restrict the range of t...

21일 전 | 1

답변 있음
Fourier series plotting and improving
Hi Faisal Running the code: syms n t T = 2; w = 2*pi/T; % Exponential Fourier series C(n) = (1/T)*(int(4*exp(-1i*w*n*t),t,...

21일 전 | 0

| 수락됨

답변 있음
What determines the maximum frequency when taking the FFT?
Hi L'O.G. If X is the output of Matlab's fft() function, then the corresponding frequency vector is: N = numel(X); wn = (0:(N...

21일 전 | 0

답변 있음
I am trying to plot an input function u(t) along a time interval [0,1] but I keep getting errors when i try to plot. Can anyone help me fix the code so it can plot?
Hello Royson, Looks like some sort of control problem involving the controllability Gramian? Maybe this is what you're looking ...

23일 전 | 1

| 수락됨

답변 있음
Symbolically solving vectors simultaneously
q0 = sym('q0_',[1 3]) moment=[5*q0(1)+25 6*q0(2)+45 5*q0(3)+45] solve(moment==0,q0)

24일 전 | 0

답변 있음
NEED HELP with fir1
Hi Justin, Executing the top part of the code ... f1 = 100; f2 = 300; f3 = 800; fs = 5000; m = (0.3*f1)/(f2/2); M = rand...

24일 전 | 0

답변 있음
Why does h2syn double the number of states?
Hey Ali, Both of those functions produce a dynamic controller that has the same number of states as the plant. So the resulting...

25일 전 | 0

| 수락됨

더로드