Answered
How do i know which Simulink Libraries are used in the Program?
license('inuse') tells the "toolboxes" that are used. What you need is libinfo('ModelName'). Most likely, 'Delft_Tyre_dtlib' is...

5 månader ago | 1

Answered
How do I restore matlab to original settings?
In MATLAB, run "restoredefaultpath" to see if you can get your Simulink back to normal. Then try to re-install SpeedGoat.

6 månader ago | 0

Answered
Where to find Variable Size for output of Matlab function in Simulink
double click the MATLAB Function block to open the code editor, Click "Edit Data" button/icon, select the variable on the left c...

6 månader ago | 0

| accepted

Answered
Initializing 1/2 of a row with one value and the other half with another
You mis-understood it. The code involves built-in functions ones() and zeros(). The input arguments are size of the matrix, not ...

6 månader ago | 0

Answered
Error in port widths or dimensions Error.
If your t=sin(0:0.01:30), which is 1x3001 double, you need to make it a column vector and then use the "From Workspace" block. ...

6 månader ago | 0

| accepted

Answered
How to show the Unit parameter in the signal attrbutes of a constant block?
There is no "unit" property at the Constant block. What you can do is to define a Simulink parameter object. A=Simulink.Paramet...

6 månader ago | 0

| accepted

Answered
how to rearrage the matrix?
[objectpointsepoch1(:,2); objectpointsepoch1(:,3)]

6 månader ago | 1

| accepted

Answered
安装waijung第三方工具箱每次打开matlab出现路径警告
I had the same problem and this probem started in R2020a. Every time you started MATLAB R2020a, such a temporary folder is aut...

6 månader ago | 0

Answered
Programmatically change user defined Library objects in Simulink model
In the first part of your code, add_block() is not used properly. You need to specify the full path of both the source and desti...

6 månader ago | 1

| accepted

Answered
how to move the currently selected port in s function builder
You have only one port so nowhere to move. The buttons are on the left. Insert one more and the other three buttons will be avai...

6 månader ago | 1

Answered
Signal Simulink from / to Workspace
The data in the first column of SigData is the time (or time step) info. It must be incremental (or non-descreasing). Based on ...

6 månader ago | 0

| accepted

Answered
Syntax Error in Simulink Fcn block
Provide values for every variable in the formula, including nb, Tfault, Tclear Provide an instance value of u Run the formula ...

6 månader ago | 0

| accepted

Answered
Operations with function handles / anonymous functions
function1 = @(x) x(1)^2+5 function2 = @(x) 2*x(2) function3=@(x) function1(x)+function2(x) function1([1 2]) function2([1 2...

6 månader ago | 1

Answered
Ugrade Advisor: Where is the Update button?
Switch back to your Simulink model, press Ctrl+D to update the model. In R2020a, you will find the button in the center of the...

6 månader ago | 0

| accepted

Answered
Get full path of referenced models
ModelFile=get_param('ModelBlock','ModelFile'); File=which(ModelFile); There is no full path info saved with the Model block, b...

6 månader ago | 0

| accepted

Answered
Plotting in a specific range
index=Res(:,1)>=20; plot(Res(index,1),Res(index,3))

6 månader ago | 0

| accepted

Answered
How to delect the zero values in table
a=[1 2 3;0 0 0 ; 1 0 2]; index=all(a==0,2); a(index,:)=[];

6 månader ago | 0

Answered
string variable arguments in set_param
p1x2(1,1) is cell, use p1x2{1,1} or define onOffTable = ["on","off"] if your MATLAB version support string data type

6 månader ago | 0

Answered
Get Simulation Phase of Simulink Model
Check the status of a simulation. get_param('ModelName','SimulationStatus') The software returns 'stopped', 'initializing', 'r...

6 månader ago | 1

| accepted

Answered
How a Integrator followed by a saturation block is different than a limited integrator?
I think it can be explained. An Integrator followed by a Saturation. The integrator just does its regular integration and the ...

7 månader ago | 0

Answered
How to solve a system of ODE in Simulink?
If the model has already been developed in MATLAB, you could use the MATLAB Function block

7 månader ago | 0

Answered
Join two sprintf into one and show it on static field
The second set(handles.text3, 'string',...) will over-write the first one. You need to combine the string and run set() once. ...

7 månader ago | 0

Answered
How can I divide plot between different scope windows in a scope block?
You have to specify 2 input ports, Mux three and feed into port 1, Mux the other three and feed into port 2.

7 månader ago | 0

| accepted

Answered
Add missing numbers between elements in an array
%% Var1= [1 1 2 4 5 7 7 7 8 10 11 13 14 14 17 17 17 17 18 20]; Var2= [0.5 0.3 0.1 0.6 0.2 0.4 0.8 0.9 0.3 0.2 0.1 0.4 0.8 0.7 ...

7 månader ago | 0

| accepted

Question


Is there a way to "Save" a link to a MATLAB Answer?
I saw a question. I know the answer because I remember answering a similar one before and it was accepted. But the answer is le...

7 månader ago | 1 answer | 2

1

answer

Answered
extract all points from curves
x= [1,2,3,4,5,6,7,8,9,10] y= [1,2,3,4,5,6,7,8,9,10] in=[1.2,2.3,3.5] out=interp1(x,y,in)

7 månader ago | 0

| accepted

Answered
How to run Simulation for certain amount of time
Specify the start time and stop time either directly through numerical value, or through variables and then set the value for th...

7 månader ago | 1

| accepted

Answered
How can I reset the time reference in a triggered subsystem in Simulink?
This turns out to be harder that it seems. Branch and connect the trigger signal to the external reset port of a resetable Int...

7 månader ago | 0

| accepted

Answered
When using the 'set_param' function, how do I ensure that I format the parameter value properly when the parameter value is a 1xn array?
how about this a=1;b=2;c=3 mat2str([a,b,c]) ans = '[1 2 3]'

7 månader ago | 0

| accepted

Load more