질문


Best way to resample the output of a Simulink simulation with variable time step into a signal with a fixed sample time
I have a simulation model that runs with a variable timestep: (I don't want to change this) For the purpose of system identi...

12달 전 | 답변 수: 1 | 0

1

답변

질문


How to turn off text interpreter when plotting timeseries objects
I am plotting timeseries objects using plot. My variable names include underscores (e.g. 'ABC_DEF') and I do not want these int...

12달 전 | 답변 수: 2 | 0

2

답변

질문


Evaluate function over a mesh grid (without for loops)
Is there a way to evaluate a function that takes an [x, y] vector as input over a grid of points? Here is the function I want t...

12달 전 | 답변 수: 2 | 0

2

답변

답변 있음
Why do I get the warning "MATLAB:dispatcher:InexactCaseMatch Cannot find an exact (case-sensitive) match for 'startup'" on MATLAB startup?
For me the problem started after I added a path to a module that I am using for a course. The scripts in this module are launch...

약 1년 전 | 0

답변 있음
Why are symbolic expressions being rounded?
Mathworks technical support have diagnosed the problem. Don't know what caused it originally but the 'FloatingPointOutput' sett...

약 1년 전 | 0

| 수락됨

질문


Why are symbolic expressions being rounded?
I'm deriving some expressions symbolically and then substituting values and computing the results and I only recently noticed th...

약 1년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Trying to set parameter values in a Simulink model using a parameter structure
I gave up on trying to figure out the ParameterStructure method and ended up doing it this way which I assume is the standard wa...

약 1년 전 | 0

질문


How to get subscripts in the legend of a Nichols plot?
How do I put subscripts in a Nichols plot legend? This works fine in a normal plot: figure plot([0 1],[3 4]); hold on plot([...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Trying to set parameter values in a Simulink model using a parameter structure
I'm following the docmentation here in an attempt to set up a Simulink model so I can apply a set of parameter values to it befo...

약 1년 전 | 답변 수: 1 | 0

1

답변

답변 있음
I get Error: Invalid expression. Check for missing or extra characters. when commenting out lines in a multi-line statement
Here is one solution but it's hardly very convenient and contrary to commenting-out in other languages: y = ... 1 + ... ...%2...

약 1년 전 | 0

질문


I get Error: Invalid expression. Check for missing or extra characters. when commenting out lines in a multi-line statement
It seems you can't comment-out entire lines in MATLAB within a multi-line statement. Or am I doing it wrong. A few examples be...

약 1년 전 | 답변 수: 2 | 0

2

답변

답변 있음
How to implement an RST controller in Simulink?
After some further diagnosis, I think I have solved the problem. The default setting of the Discrete-Time Integrator block is '...

약 1년 전 | 0

질문


How to implement an RST controller in Simulink?
Every time I search for help on this I am taken to the following page: RST Controller But I don't have access to the Simscape ...

약 1년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to simulate a discrete linear system model with a user-specified disturbance signal?
I found the answer in the documentation: opt = simOptions('AddNoise',true,'NoiseData',e); Turns out I was looking at the wrong...

약 1년 전 | 0

| 수락됨

질문


How to simulate a discrete linear system model with a user-specified disturbance signal?
I'm using idpoly and sim to simulate a discrete linear system so I can compare the output with my own (hand-coded) simulation. ...

약 1년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Raise a scalar to a descending series of powers in an array
Here is the correct answer I think. Element-wise operation: 0.8.^(3:-1:1)

약 1년 전 | 0

| 수락됨

답변 있음
Raise a scalar to a descending series of powers in an array
I found this solution: power(0.8,3:-1:1) ans = 0.5120 0.6400 0.8000 But still surprised if it can't be done ...

약 1년 전 | 0

질문


Raise a scalar to a descending series of powers in an array
I'm trying to compute a series of powers of a scalar. This seems to work but the result is not what I expected: 0.8^1:3 ans...

약 1년 전 | 답변 수: 3 | 0

3

답변

답변 있음
How to check if two transfer functions are the same?
There is an answer on Stackoverflow: However, it does not work directly in my case: isequal(tf(C1), Gc1) ans = logical...

약 1년 전 | 0

질문


How to check if two transfer functions are the same?
I want to verify that two transfer functions are equal. For example: Kc = 0.4262; Ti=1.35; C1 = pidstd(Kc,Ti); tf(C1) s = t...

약 1년 전 | 답변 수: 3 | 0

3

답변

질문


Solve equation that has a complex subexpression
I want to solve the following equation for omega: where So I tried this: syms s omega G(s) G(s) = 10/(s*(1+s)*(1+0.2*s))...

약 1년 전 | 답변 수: 2 | 0

2

답변

질문


How to assign values to an array with broadcasting
Is there any way to do broadcasting while assigning values to an array? I know how to broadcast a computation: G = zeros(3) G...

약 1년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Undefined function 'workspacefunc' — How to change search path back after accidentally changing it
In the end I simply force-quitted MATLAB and restarted it and it works as normal again. (Remember to save your work first).

약 1년 전 | 0

| 수락됨

질문


Undefined function 'workspacefunc' — How to change search path back after accidentally changing it
I couldn't remember the function to check if a directory exists so I typed the following, and then accepted the suggested correc...

약 1년 전 | 답변 수: 2 | 0

2

답변

질문


How can I determine the order of a symbolic differential equation?
I'm writing a function that takes a differential equation in symbolic form as an argument and I want to determine the order of t...

약 1년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Why do I receive License Manager Error -97?
This is far too complicated and there are too many potential solutions. I have this error after installing MATLAB on a second c...

약 1년 전 | 0

답변 있음
Can't see any effect of NoiseVariance with idpoly and lsim
Maybe lsim is not the right function to use. I solved the problem by using sim instead, which has options including to add nois...

1년 이상 전 | 0

질문


Can't see any effect of NoiseVariance with idpoly and lsim
I'm trying to simulate this system with an output disturbance. With or without NoiseVariance specified I cannot see any differe...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


How to get number of factors after factorizing a symbolic function?
I'm using factor to factorize a symbolic polynomial. Works well but when the result is a symbolic vector containing the factors...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


Using factor on symbolic expression but not always factorizing
I'm trying to show both versions of a symbolic equation, one unfactorized and one factorized. This example works as expected:...

1년 이상 전 | 답변 수: 1 | 0

1

답변

더로드