답변 있음
Sizeof double float int etc
Look at the .bytes returned by whos() a=false(5); aInfo=whos('a') b=zeros(5); bInfo=whos('b')

3달 전 | 0

답변 있음
Is There a Way to Find all Shadowed Functions on the matlabpath?
I am not aware of any direct method. On the other hand, Files=dir('**/*.m') will give you all the M-file names including all sub...

3달 전 | 0

| 수락됨

답변 있음
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...

3달 전 | 1

답변 있음
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.

3달 전 | 0

답변 있음
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...

3달 전 | 0

| 수락됨

답변 있음
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 ...

4달 전 | 0

답변 있음
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. ...

4달 전 | 0

| 수락됨

답변 있음
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...

4달 전 | 0

| 수락됨

답변 있음
how to rearrage the matrix?
[objectpointsepoch1(:,2); objectpointsepoch1(:,3)]

4달 전 | 1

| 수락됨

답변 있음
安装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...

4달 전 | 0

답변 있음
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...

4달 전 | 1

| 수락됨

답변 있음
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...

4달 전 | 1

답변 있음
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 ...

4달 전 | 0

| 수락됨

답변 있음
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 ...

4달 전 | 0

| 수락됨

답변 있음
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...

4달 전 | 1

답변 있음
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...

4달 전 | 0

| 수락됨

답변 있음
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...

4달 전 | 0

| 수락됨

답변 있음
Plotting in a specific range
index=Res(:,1)>=20; plot(Res(index,1),Res(index,3))

4달 전 | 0

| 수락됨

답변 있음
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,:)=[];

4달 전 | 0

답변 있음
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

4달 전 | 0

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

4달 전 | 1

| 수락됨

답변 있음
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 ...

4달 전 | 0

답변 있음
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

4달 전 | 0

답변 있음
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. ...

4달 전 | 0

답변 있음
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.

4달 전 | 0

| 수락됨

답변 있음
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 ...

4달 전 | 0

| 수락됨

질문


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...

4달 전 | 답변 수: 1 | 2

1

답변

답변 있음
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)

4달 전 | 0

| 수락됨

답변 있음
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...

4달 전 | 1

| 수락됨

더로드