回答済み
gfdeconv implementation in Simulink
If gfdeconv is not supported for code generation (it appears not to be as there is no "Extended Capabiliites" section on its doc...

3年以上 前 | 1

回答済み
What is the reason why Simulink does not display numbers when I enter decimals for block parametric values?
Click/hold on a corner of the block and stretch it until the numerator and denominator polynomials are displayed.

3年以上 前 | 0

回答済み
Question about eigen-vector compute value
"I need to compute the eigevector belonging to the maximum eigen value." Why is SVD being used? Just use eig? o=eye(3); z=zer...

3年以上 前 | 0

回答済み
Turn cell array including space (i.e, ' ') into string
cell_arr = [{'c'} {'a'} {'s'} {'t'} {' '} {'m'} {'e'} {'m'} {'b'} {'e'} {'r'} {'s'}]; If a sti...

3年以上 前 | 1

| 採用済み

回答済み
How to operate block matrices?
One can always store block matrices in cell arrays and then roll code to implement the block matrix algebra. Maybe there is a su...

3年以上 前 | 1

回答済み
How to plot shaded rectangles?
One option is rectangle. Can make the color whatever you want, but not transparent t = 0:.01:1; plot(t,sin(10*t)) grid r = r...

3年以上 前 | 2

| 採用済み

回答済み
Using conv() function
h, x, and u are actually functions that are evaluated at the values of their input arguments. So need to evaluate h and x at the...

3年以上 前 | 0

回答済み
string to array and then getting the first value of the array
It's just solid(1)

3年以上 前 | 0

| 採用済み

回答済み
Linear equations with three unknowns
Hi Ahmed, The problem in the Question is ill-defined becasue there are no values of (x,y,z) that satisfy all four equations. ...

3年以上 前 | 0

回答済み
what is this simulink's block?
Double click on the block. The very top of the dialog window that opens should say "Block Parameters: BlockType" where BlockTyp...

3年以上 前 | 0

回答済み
Problem in creating stimulink for a tranfer function
Can't be done. If the block in question is followed (or preceded) by another block of an LTI system, then you can combine them ...

3年以上 前 | 0

回答済み
Creating a log probability plot for particle size distribution
Using same example data as above ... x1 = wblrnd(3,3,[500,1]); figure probplot('weibull',x1) grid set(gca,'XDir','reverse')...

3年以上 前 | 0

回答済み
How to plot the convolution integral of two functions
Hi Anthony, When using conv to compute a convolution sum to approximate a convolution integral of two signals (not two integral...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 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...

3年以上 前 | 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() ...

3年以上 前 | 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...

3年以上 前 | 2

回答済み
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...

3年以上 前 | 2

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
how to change the rise time of step input in simulink
A 1D Lookup Table seems like a good option.

3年以上 前 | 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...

3年以上 前 | 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 ...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 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 ...

3年以上 前 | 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))...

3年以上 前 | 1

回答済み
Table - conditional maths and plots from variables
Check out splitapply

3年以上 前 | 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 ...

3年以上 前 | 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...

3年以上 前 | 0

さらに読み込む