已回答
Not suppressable warnings in Simulink
Between fast restart simulations, you have some variables that have changed their values. But these variables are non-tunable. T...

1 year 前 | 0

已回答
open_system() not working with Model Reference
You need to get the name of the referenced model first and then open the model separately. RefModel=get_param('TOP_LEVELSystem/...

1 year 前 | 1

| 已接受

已回答
error using reshape for a specific case
reshape(1:8,4,[]) reshape(1:2,4,[])

1 year 前 | 0

已回答
Displaying peaks' values on a graph
text()

1 year 前 | 0

| 已接受

已回答
The variables in Simulink cannot be displayed in the workspace.
This is because the saving format in the "To Workspace" block is specified as "time series" or "data set". If the variable name ...

1 year 前 | 0

已回答
error using tranpose (recieving permute error )
The error message is clear. How do you transpose a three (or more) dimension array? a=rand(2,3); a'; a=rand(2,3,4); a';

1 year 前 | 0

| 已接受

已回答
Question about signal type - white arrow
That is message. https://www.mathworks.com/help/simulink/ug/simulink-messages-overview.html https://www.mathworks.com/help/sim...

1 year 前 | 0

| 已接受

已回答
Use Indexing for more than 1 dimension of array simultaneously
matrix(sub2ind(size(matrix),(1:10)',idx))

1 year 前 | 0

已回答
Initializing values from workspace using embedded coder
Use the Initilize Function block https://www.mathworks.com/help/simulink/slref/initializefunction.html

1 year 前 | 0

| 已接受

已回答
how do i implement these blocks?
Double click the block in Simulink. The dialog appeared will show the block type. If it's still not clear, click the "Help" butt...

1 year 前 | 0

| 已接受

已回答
Help with comparing strings from cells
A{1,5} itself is a cell. Do the following class(A{1,5}) isequal(char(A{1,5}),'FIRING') A{1,5}{1}

1 year 前 | 0

| 已接受

已回答
i am trying to display the dialog parameters of all blocks in a simulink model. But i am not getting the exact result. Can anyone help me in this?
"paramValue" turns to be a struct. All its field values are struct, so your code ends up running this line for all iterations. ...

1 year 前 | 0

| 已接受

已回答
How to insert an input in a constant in simulink?
Use the "Assignment" block to assign values to specified elements of a multi-dimensional signal.

1 year 前 | 0

已回答
Changing size of variable inside Matlab function in SIMULINK
Use variable size data. It can be done but a little tricky. https://www.mathworks.com/help/releases/R2022b/simulink/ug/declare-...

1 year 前 | 0

| 已接受

已回答
Is there a way to set the default behavior for `format` statement?
no big deal. Put that in a startup.m file Also, set it in MATLAB Preference, Command Window, Text Display

1 year 前 | 0

已回答
Single plot title line with multiple text interpreters?
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , strrep(filenameHBW,'_','\_') ] )

1 year 前 | 1

已回答
how to add several inport to the buscreator
set_param('untitled/BusCreator','Inputs','3'); add_line('untitled','Inport/1','BusCreator/1') add_line('untitled','Inport1/1',...

1 year 前 | 0

| 已接受

已回答
Simulation status is stopped but I cannot start new simulation from script because Matlab assumes it is still running
Might it be too fast to re-start the simulation? There could be some post-simulation processing going on. Anyway, in the M-scri...

1 year 前 | 0

已回答
Is it possible to "Edit table and breakpoints" for a LUT within a masked subsystem?
On the dialog of the Lookup Table block, you provide the variable name to pass to the Lookup Table block. On the dialog of the ...

1 year 前 | 0

已回答
Display without new line
use sprintf() and check "doc sprintf" to learn the % Formatting Operator sprintf('format short: %f',x) sprintf('format short: ...

1 year 前 | 0

已回答
Error Messages keep popping up: "Undefined function or variable"
up case, low case

1 year 前 | 0

已回答
Create a repeating sequence without interpolation
I found it impossible to use the "Repeating Sequence" block due to the "breakpoints must be strictly monotonically increasing" ...

1 year 前 | 0

已回答
Variables are stored but not shown is the workspace?
The variable name "ans" is reserved by MATLAB. type "doc ans" to read it

1 year 前 | 0

已回答
I am unable to understand what's wrong in this code.
if fid < 0 || ~ischar(character) fprintf('-1'); charnum=-1; return end

1 year 前 | 0

已回答
how can I change a sequence so that the values of the sequence are zero if the the result division by 2 is not an integer in MATLAB?
x=[0 1 2 3 4]; y=x; index=mod(x,2)~=0; y(index)=0

1 year 前 | 0

| 已接受

已回答
How to get the exact file pathname for a linked library
save_system() has options to skip prompt, ignore warning and force save. If there are multiple files with the same name as the ...

1 year 前 | 0

已回答
Make Timer in Simulink
It might be easier to implement it through Simulinnk block diagram, similar to this one. https://www.mathworks.com/matlabcentra...

1 year 前 | 1

| 已接受

已回答
convert 16bit char to 4 byte hex values
c=char(["1000100010001000"; "0000000000000010"; "1111111111111111"]) d=dec2hex(bin2dec(c))

1 year 前 | 0

已回答
Delete every nth element in array and increasing 1 NaN value per new row
nRow=15; nCol=10; Array=repmat(1:nCol,nRow,1); for k=1:nRow index=mod((1:nCol),k+1)~=1; Array(k,index)=nan; end A...

1 year 前 | 0

加载更多