Community Profile # Paul

Last seen: Today 2011 이후 활성

#### Statistics

All
• • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
Problem seen in discrete transfer function with varable z^-1, when calc ztrans of x(n)=n*u(n)
Code works exactly as advertised u = @(n) heaviside(n) ; % change function name syms n x(n)=n*u(n) X1=ztrans(x) [num, den...

약 10시간 전 | 2

| 수락됨

답변 있음
convolution of signals using matlab
Hi Jiby, With respect to part b), you may want to consider: b) In linear systems analysis, we often use convolution to apply a...

2일 전 | 0

답변 있음
How to randomize simulation seed in simulink?
Hi Amr, When I first saw the question, I was quite surprised. To my uderstanding, the call to pearsrnd in the Matlab Function b...

3일 전 | 2

답변 있음
Convolution of a gaussian and an exponential
Are all of the parameters in the problem real? If so, then asserting them as such yields a simpler result. syms I0 E E0 s N0 a...

3일 전 | 0

답변 있음
Using subs() in a function when symbolic variables defined in another function
Making F into a symfun seems to work .... F = getJacobian valueF = someRandomFunc(F) function myJacobian = getJacobian() ...

5일 전 | 1

| 수락됨

답변 있음
impulse response ode45 help
Hi 9times6, Numerical integration schemes like ode45 don't really work for Dirac delta functions. One option is to compute the...

6일 전 | 0

답변 있음
Help Making a Piecewise Function Periodic
HI Connor, Something like this? syms t real z(t) = piecewise(0 <= t <= 1,t, 1 < t <= 2.5, exp(-5*(t-1)),0); fplot(z(t),[-2 1...

6일 전 | 1

| 수락됨

답변 있음
Creating a series of random numbers, where the next series is changed by a factor with the previous
Hi Lily, The code starts by allocating a 5 x 25 matrix, x. That's good. But then x is never used after that. Assuming that x i...

6일 전 | 0

답변 있음
how to change the rise time of step input in simulink
A 1D Lookup Table seems like a good option.

8일 전 | 0

답변 있음
How to calculate and sketch the Fourier Transform of a gaussian function?
Hi Steven What doesn't seem correct? The only issue I see is the calculation of Fv, modified below. x_fit_func = @(x) (exp(-p...

8일 전 | 0

| 수락됨

답변 있음
how to code transfer function
There seems to be two questions in this Question. The first question is: How to plot the transfer function. For values of tau0 ...

8일 전 | 0

| 수락됨

답변 있음
I want to know what is this block
I think it's a Display block. Right-click on it. There should be something in that menu that either identifies it directly or ca...

8일 전 | 1

답변 있음
Don´t know how to perform IFFT considering my frequency.
Hi Andriy I would attack the problem this way, assuming throughout the original time-domain signal is real and the freq vector ...

10일 전 | 0

답변 있음
Change exp from number to e
Use sym arguments to exp, otherwise it reverts to the base Matlab numerical function. syms c1 c2 y(x) f(x) y(x) = (exp(sym(2))...

11일 전 | 1

답변 있음
Table - conditional maths and plots from variables
Check out splitapply

11일 전 | 1

| 수락됨

답변 있음
How to write a for loop to iterate through subjects IDs and their associated reaction times and create histogram
Hi Rania, Check out the splitapply function and workflow. Example with an array, but I think you can make it work with a table ...

11일 전 | 0

| 수락됨

답변 있음
How to fix the large and mad fractions when dealing with symbolic vars
In this expression syms a a * cos(pi/2) the cos() is evaluated numerically and the result converted to a sym to multiply with...

12일 전 | 0

답변 있음
block diagonal matrix in the opposite diagonal
Here's one option a = rand(2); b = rand(2,3); A = blkdiag(a,b) D = oppblkdiag(a,b) function D = oppblkdiag(varargin) c...

12일 전 | 1

| 수락됨

질문

Can a Dictionary Key be a char?
Playing with the new dictionary in 2022b and discovered that a char can't be used as the key (can use a string though) string.e...

13일 전 | 답변 수: 3 | 0

### 3

답변

답변 있음
underwater acoustic wave Signal to Noise Ratio (SNR)
At a minimum: SSs is still using log, probably should be log10 The equation coded for ns doesn't match the equation in the que...

13일 전 | 1

답변 있음
Character Frequency of String
Using the new dictionary in 2022b and the on-point example from this blog post str = "SunnyDay"; chr = char(str); d = diction...

13일 전 | 0

답변 있음
How to change constant block automatically and run automatically
Is your question, "How do I run the simulation for multiple values of firing angle and save the results of each simulation?" If...

13일 전 | 0

답변 있음
How to get the output of a controller from MATLAB codes not simulink
I suggest using interconnection functions to build a single system model that has the control input to the plant as one of the o...

13일 전 | 0

답변 있음
Deriving the transfer function from a data set that has magnitude,phase and omega
Hi George, I plotted the data and it looks like the data comes from a transfer function where the degree of the denominator is ...

14일 전 | 0

답변 있음
How to subtract ?
Can do this in a loop B = 12; A = [0 1 2 3 4 5 6]; C = 0*A; C(1) = B(1) - A(1); for ii = 2:numel(A) C(ii) = C(ii-1) - ...

14일 전 | 1

답변 있음
How can I have for loop show me each histogram it created rather then play it like a movie?
What happens if you put the command hold on after the figure(3) line?

16일 전 | 1

답변 있음
discrete TF ""the order of the denominator must be greater than or equal to the order of the numerator""
Hi mahmoud. Q(z) can't be implemented in Simulink. If the model has another element, call it P(z), in series with Q(z), then t...

18일 전 | 0

질문

Where is the Documentation for Indexing on the Left Hand Side of an Assignment?
I recently ran into something like this: x = [1 2 3]; x([1 2 1]) = [10 20 30] So it looks like the second index of 1 on the L...

19일 전 | 답변 수: 1 | 0

### 1

답변

답변 있음
How can my code, which collects bad data with 'cellfun' and 'try, catch', be improved?
Have func() return a logical with true indicating the file is bad and false indicating the file is good. In this case we'd have...

19일 전 | 0

| 수락됨

답변 있음
How to ROUND the elements of cell array?
% example data rng(100) child.x ={rand(1,3)}; format long child.x round(child.x{1},3)

19일 전 | 0

| 수락됨