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

4年以上 前 | 0

回答済み
Numerical Solution for a system of Two Differential Equations
Because V(t) is an input presumably it can be expressed as a function of time, in which case the simplest appraoch is to just c...

4年以上 前 | 0

回答済み
Even with all my effort, I can not get my plot to show a line, why?
At the end of your loop, the variable balance is a single number. Maybe you wanted balance(i) = Obalance so that balance is a...

4年以上 前 | 0

回答済み
Inputting simulation data to Simulink
One option is the From Workspace block.

4年以上 前 | 0

| 採用済み

回答済み
Plot signal of DFT without using FFT function
The first approach to compute DFT directly using the definition can't be correct because there is no summation over n. Try it th...

4年以上 前 | 0

| 採用済み

回答済み
How do I input a tranfer function in simulink with just a numerator?
Similar question discussed here

4年以上 前 | 0

回答済み
Issue with FFT/Power Spectral Density
That peak is at dc because the mean of the data is very large. Try fhat=fft(detrend(ecg_data),n); to take out the mean before ...

4年以上 前 | 0

回答済み
Solving a transcendental equation
Here's another way to get a numeric solution, staying in the symbolic world % Pyhsical Parameters L = 0.02; %[m] H = 0.5; %[m...

4年以上 前 | 1

回答済み
lsim function not work for polynomial model
I'm not sure what a "polynomial model" is. But that error message means that lsim is being called on a discrete time system that...

4年以上 前 | 0

| 採用済み

回答済み
Fourier transform of symbolic function
Replicating the code: clear syms t syms y(t) z(t) syms k m w J I Dy = diff(y); Dz = diff(z); k = 4.5682; m = 0.2; w = 0...

4年以上 前 | 1

回答済み
I m trying to solve homogeneous linear system equations X = K exp (Lamda (t))
It doesn't work because A is a 3 x 3 matrix, but Y is only 2 x 1, so A*Y doesn't make sense. Maybe you meant to include a third ...

4年以上 前 | 0

| 採用済み

回答済み
Best way to optimize iterative Simulink calls
I have no idea why a run in the loop takes so much longer than a single run not in the loop. Might be worth reaching out to Tech...

4年以上 前 | 1

回答済み
How to plot a tangent line between two lines
Can use the Symbolic Math Toolbox for the exact result syms x real y_yellow(x) = 4187*x - 51372; y_red(x) = 20312*exp(0.0524*...

4年以上 前 | 0

| 採用済み

回答済み
Check for missing argument or incorrect argument data type in call to function 'abs'.
I doubt that res.control is a numeric array. Depending what how the signal "control" is formed in the simulation RTS, you'll pro...

4年以上 前 | 0

回答済み
(Need Help) How to generate state-space model in Matlab?
The output in eq (2) should be: y = C*x + D*u i.e., D multiplies the input. It's not a constant in the output. To your que...

4年以上 前 | 0

| 採用済み

回答済み
how to extract a transfer function or state space model from a Simulink model
Check out doc linearize

4年以上 前 | 0

| 採用済み

回答済み
How to change the step size of rlocus
rlocus() takes a second argument that defines the gains, k, where the points are plotted. rlocus(sys,k) Specify k to make the ...

4年以上 前 | 0

| 採用済み

回答済み
How do you solve for constants in a system of equations?
syms P L E1 E2 % are all known values, E1 and E2 not used? syms I1 I2 E % also known values? syms C1 C2 C3 C4 syms x ...

4年以上 前 | 1

回答済み
Solving Jacobian matrix for singularities
Becase this is an assignment, here's some code and hints to get started syms TH1 TH2 TH3 TH4 TH5 TH6 TH = sym('TH',[1 6]); % g...

4年以上 前 | 2

| 採用済み

回答済み
Integrating bivariant Gaussian Distribution by integral2 in Polar coordinates
It appears that the default settings for integral2 don't "realize" that the critical region that dominates the integral reisdes ...

4年以上 前 | 0

| 採用済み

回答済み
Why does transforming transfer matrix into complex vector transfer function lead to NaN ?
Recreating the result %% Calculation of Transfer Function % Parameters Lf_1 = 5.6e-3; Rf_1 = 0.1; Cf_1 = 1.61e-05; L_1 ...

4年以上 前 | 1

| 採用済み

回答済み
Manipulation of complex expressions
The final substitution into U_2 needs to be changed as shown below. syms('R', 'positive') syms('C', 'positive') syms('omega',...

4年以上 前 | 2

| 採用済み

回答済み
How do you get up to first n characters in a string?
If a string array: s_arr = ["a";"ab";"abc";"abcd";"abcde"] s_arr(strlength(s_arr)>3) = extractBefore(s_arr(strlength(s_arr)>3)...

4年以上 前 | 1

回答済み
How to fix the sym/solve error
What version are you using? Seems to work ok here, but w/o any references to Maple. which -all solve z = [-6.41 -12.4 2.143 1...

4年以上 前 | 0

| 採用済み

回答済み
I don't seem to understand the feedback function of matlab
The feedback() function returns the LTI system with input u and output y. Other functions are used to determine the output of t...

4年以上 前 | 0

回答済み
Taking second partial derivative symbolically with diff()
This line DV_N1(j,k) = diff(V_N,w_n(j),w_n(k)); doesn't look correct. The third argument to diff() should be n, which tells d...

4年以上 前 | 0

| 採用済み

回答済み
Some of Analog Filter Design block's parameters seems invalid when fetched with get_param()
Two options. Option 1: ws = get_param(gcb,'MaskWSVariables'); ws will be 1-dimensional structure array with fields Name and V...

4年以上 前 | 1

| 採用済み

回答済み
Transform a MIMO system to state space.
Therer really isn't a need to use tf2ss anymore. The functions tf(), ss(),and zpk() can be used to convert from one form to ano...

4年以上 前 | 3

| 採用済み

回答済み
How to concatenate using for loop?
Preallocate an empty matrix with 231 columns and then use doc vertcat each time through the loop

4年以上 前 | 0

回答済み
Calculate steady state error for unit step and ramp input for Zero order hold
The by-hand calculations do not appear to be correct. A quick way to get an idea if the calculations for the step input are corr...

4年以上 前 | 0

さらに読み込む