回答済み
Collect does not do the job
Here is one approach showing step-by-step. Many could be combined. Maybe there is a simpler way? syms y y0 muY(y) dt f=(y*di...

4年以上 前 | 0

| 採用済み

回答済み
In the Symbolic toolbox,how to get the results like in the old version
% first example syms x g(x) = 1/(x - x^2); f(x) = int(g(x)) simplify(rewrite(f(x),'log'),100) % as it turns out, f(x) retur...

4年以上 前 | 1

| 採用済み

回答済み
how to build a control system with one input and multiple outputs
Here is one approach (there are others), with simple examples tf's for C, F, and G, that you should be able to adapt to your pro...

4年以上 前 | 0

| 採用済み

回答済み
Why does using a symbolic function as argument in a function give 'not enough input arguments' error?
There seems to be more f's than is needed. If the first input to bisection from the caller is a symfun, it should be usable dire...

4年以上 前 | 0

回答済み
Using symbolic integration: Why does my double integral returns different numerical values depending on integration order?
Comment: I'm not going to use the anonymous functions because, as far as I know, those are invalid inputs to int and I don't kno...

4年以上 前 | 2

| 採用済み

回答済み
How do you use ode45( ) when the equation is not in dy/dt form?
Check out this link ....

4年以上 前 | 0

回答済み
Basic Difference Equation Plot
Look carefully at these lines I = zeros(1, 500); I(1) = 50; for t = 2:100 I(t+1) = I(t) + rI * I(t) * (1 - I(t)/f(P)) - ...

4年以上 前 | 0

回答済み
Compare two string vectors with same input arguments but different length
If stored in a cell arrary: c1 = {'a','b','c','d','e','f','g','h'}; c2 = {'a','a','b','c','d','d','d','e','e','f','g','h'}; ...

4年以上 前 | 0

| 採用済み

回答済み
Plot Fourier Series from a variable
The easiest way would be to use fplot(). Also, use assume() instead of evalin syms x k L n % evalin(symengine,'assume(k,Type::...

4年以上 前 | 0

| 採用済み

質問


How Can the Output of odetovectorfield be Used
Other than sending to matlabFunction(), how can one use the output of odetovectorfield? syms x(t) eqn = diff(x(t),t,2) + diff(...

4年以上 前 | 1 件の回答 | 0

1

回答

回答済み
Find non singular transformation matrix
Assuming the goal is as described in this comment, one solution would be: T1 = [0 0 0 0 0 0 1 0 1 0]; T = [T1;null(T1).']; S...

4年以上 前 | 0

| 採用済み

質問


Is the LiveScript Editor Connected to the Base Workspace?
I have a live script that does a bunch of stuff. After the script runs I have some variable from that script in the base worksp...

4年以上 前 | 1 件の回答 | 0

1

回答

回答済み
Extracting the numeric part from a cell
str = ["injection-0:94577)" "injection-0:94578)" "injection-0:94579)" "injection-0:94580)" "injection-0:94581)" "injection-...

4年以上 前 | 0

| 採用済み

回答済み
answer different on MATLAB than the expected answer
Mathematically, the answers are the same because the Ci are abitrary constants (absent any othe conditions on the solution). So...

4年以上 前 | 2

| 採用済み

回答済み
Fourier Series for thin airfoil theory
From the equation it looks to me that y is scalar function and the independent variable x is also a scalar. Are xcam and ycam b...

4年以上 前 | 0

| 採用済み

回答済み
Undefined function 'Poles' for input arguments of type 'double'.
From the way the code is written it looks like Poles is supposed to be a variable. But the code never actually computes Poles. S...

4年以上 前 | 0

| 採用済み

回答済み
Applying single input and single output to mimo system
The definition of sys1 has three outputs. However, the first two rows of C are zero, so outputs y1 and y2 will be zero. The thir...

4年以上 前 | 0

| 採用済み

回答済み
System of coupled Differential algebraic equations
The ode15i solver might do the trick doc ode15i

4年以上 前 | 0

| 採用済み

回答済み
Question about matricies in Matlab
You'll have to fill in the last spot ox x2 with something if you want to combine x1, x2, and x3 into a single matrix. The value ...

4年以上 前 | 0

| 採用済み

質問


Why Does "clear all" Impact Prior Commands in a Script?
Here is the example code. If I comment the "clear all" line in Section 2 the ouput of fplot() in Section 1 comes out fine with ...

4年以上 前 | 2 件の回答 | 0

2

回答

質問


Did LiveScript Get Worse in 2020b?
I recently updated from 2019a to 2020b. I've been working on Live Script. In 2019a, it works fine. In 2020b I'm seeing a serio...

4年以上 前 | 1 件の回答 | 0

1

回答

回答済み
how to plot impulses obtaining x and y values (non periodic) from 2 separate matrices
Is one of these what you want? SpurOffsetFreq = [37.467 56.486 85.159; 56.486 86.693 113.309]; SpurLeveldBc = [-96.527 -97.912...

4年以上 前 | 0

| 採用済み

回答済み
Simulink To workspace issues R2017a
Don't know why those two sim commands would yield different results. In the first instance, I suspect that currvolt is inside an...

4年以上 前 | 0

| 採用済み

回答済み
A better way to do antidiagonal matrix vectorization?
The approach in test1() isn't faster, but perhaps it meets the criterion for more elegance. My tests indicate that most of the ...

4年以上 前 | 0

| 採用済み

回答済み
Replacing Blocks in Simulink but keep their value
You can use : val = get_param(blk,'Value') to get the value of the Contant block(s) to be replaced. Then replace the block(s)...

4年以上 前 | 0

回答済み
How can I call an array of letters into a for loop?
If I understand the question .... letters = 'ABCD'; % simpler for ii = 1:4 fprintf('The open loop poles for part %s are:\n',...

4年以上 前 | 0

| 採用済み

回答済み
How would I get an inverse and transfer function of a matrix with variable s?
A is of class char. What I think you want is a transfer function matrix from the Control Systems Toolbox A = [('s' + 0.06728) ...

4年以上 前 | 1

| 採用済み

回答済み
MATLAB returns a wrong value of determinant.
The reason det() doesn't return zero for this matrix is because the floating point errors in the computation of the determinant....

4年以上 前 | 1

| 採用済み

質問


Why Does fplot() Show a Phantom Pole?
Example of fplot() showing a pole where clearely one does not exist. I know I can get rid of the dased line with the ShowPoles o...

4年以上 前 | 1 件の回答 | 1

1

回答

回答済み
'ab[c]' to this 'ab_c' ?
C = { '10fthf[c]' '10fthf[h]' '10fthf[m]' '10fthf[x]'} cellstr(extractBefore(string(C),"[") + "_" + extractBefore(e...

4年以上 前 | 0

さらに読み込む