回答済み
Remove default block names from auto generated Code using embedded coder
If you want a particular variable name for a signal line in the model, double click the signal line, give it a name "MySignal", ...

6年弱 前 | 0

| 採用済み

回答済み
couldnt able to use switch statement with string
material=lower(material); without the single quote.

6年弱 前 | 0

| 採用済み

回答済み
Issue with Lookup Table Code Generation?
Column-Major Layout to Row-Major Layout Conversion of Models with Lookup Table Blocks web(fullfile(docroot, 'ecoder/ug/column-m...

6年弱 前 | 0

| 採用済み

回答済み
Delete files inside subfolder
use dir('**/*.mat') to find files in subfolders in one shot and then use a for-loop to delete the files.

6年弱 前 | 0

| 採用済み

回答済み
Fastest way to replace NaNs by empty cells in a table
M=10;N=5; a = rand(1, M)'; a(1:N) = NaN; b = rand(1, M)'; b(1:N) = NaN; c = repelem({'A101'}, M)'; t = table(a, b, c); t....

6年弱 前 | 0

| 採用済み

回答済み
Why I the data processed by the matlab is wrong, it reports three wrong results,what is the reason?All the data and .m files are included ,who can help me?
This is probably the limitation of the smartness of the importdata() function. If you look at filec.textdata, you will get a cl...

6年弱 前 | 0

回答済み
How to generate non-repeatable random number in simulink in same session
The MATLAB Function block is executed at every simulation step. For this case, I would suggest using rng() and poissrnd(0.52,N,1...

6年弱 前 | 1

| 採用済み

回答済み
How can I output singular element of an array from workspace to simulink per second simulation time?
Assume your data is: data=(1:96)'/100 Create a time vector: time=(0:95)' Use a "From Workspace" block, specify the data as [ti...

6年弱 前 | 0

回答済み
Unable to update data tip using custom update function
It must be related to where the custom update function comes from when the figure is saved. I created and saved the figure fir...

6年弱 前 | 0

| 採用済み

回答済み
How to extract a value from a Row or Column vector?
Is this what you are looking for ? MyVector=rand(100,1); MyData=MyVector(5);

6年弱 前 | 0

| 採用済み

回答済み
How to copy the content of a model to another model without closing the current model
save_system() and then copyfile() Simulink autosave preference Simulink.BlockDiagram.copyContentsToSubsystem(), Simulink.SubSy...

6年弱 前 | 0

| 採用済み

回答済み
How can I write a Mask parameter to the workspace in Simulink?
The masked parameters seem to mismatch internal variables. The easiest way is to change the #1 and #2 parameter name in the mask...

6年弱 前 | 0

| 採用済み

回答済み
strcmp: compare a string with a set of strings
IsSpring=ismember('January',{'January','Feburary','March'})

6年弱 前 | 0

| 採用済み

回答済み
import an old simulink model from 1995
This .m file is still valid on its concept. It runs M-script or commands to create a Simulink model on-the-fly. If you run "dyna...

6年弱 前 | 0

回答済み
Connect two simulink lines programatically
%% Model='ex_goto_tag_visibility_block'; open_system(Model); Block=[Model,'/GotoGlobal']; PC=get_param(Block,'PortConnectivi...

6年弱 前 | 0

回答済み
structure is pointlessly nested within itself when I save it. How to unnest?
If you use load() without returning a variable, then the structure won't be created, but then you have to know what variables ar...

6年弱 前 | 0

回答済み
What is a 'Code Dictionary'?
For R2019a, here is the document reference web(fullfile(docroot, 'ecoder/ref/embeddedcoderdictionary.html')) Or Embedded Cod...

6年弱 前 | 0

| 採用済み

回答済み
What's a Simulink.Parameter?
Actually it takes more work (or lines of code) to define a Simulink.Parameter. But it has more capabilities. It can define Min ...

6年弱 前 | 3

| 採用済み

回答済み
Simulink bug - adding a PID only to scope creates large fluctuations
It is not a bug. Don't claim it is a bug when you have no idea. You need to learn how digital simulation solves an analog proble...

6年弱 前 | 1

回答済み
Change Simulink.Parameter inside Simulink model
It will be hard to "change the value of a Simulink.Parameter from inside of my Simulink model", if not possible. Even if you cou...

6年弱 前 | 0

| 採用済み

回答済み
Simulink Post Sim Function
Try the PostSaveFcn.

6年弱 前 | 0

回答済み
Data Type Conversion does not convert to boolean when attached to transfer function block
Your filter coefficient 50e-6 makes it respond faster but the output will "creep" for a long time. The boolean conversion or th...

6年弱 前 | 0

| 採用済み

回答済み
A subplot with a numerical value
s=subplot(3,3,9); set(s.XAxis,'visible','off'); set(s.YAxis,'visible','off'); t=text(0.5,0.5,num2str(1.2),'color',[1 0 0]);

6年弱 前 | 0

| 採用済み

回答済み
matlab script problem ??
rtwbuild(subsystem). See "doc rtwbuild"

6年弱 前 | 0

回答済み
Remove Highlighting in Block
"during simulation i am highlighting it to blue". It is not highlighting. It is changing color. If you ran hilite_system(block,...

6年弱 前 | 0

| 採用済み

回答済み
MATLAB code including for loop doesn't work in MATLAB Function block in Simulink
In MATLAB, a program runs without the dimension of time. You can do "post-processing" with all the data available at the beginin...

6年弱 前 | 0

回答済み
What's an Exported-Function Model?
Export-Function Models Overview Basically, the whole model is generated as a single function or multiple functions. How it is c...

6年弱 前 | 0

| 採用済み

回答済み
In Simulink how do I in a certain time step use all the values of one timeseries parameter before this time step?
At time 3, B(all values from time 1 to 3) is basically the integration of B signal from time 0 to 3 (there is a coefficient invo...

6年弱 前 | 0

回答済み
Parameter values for variant subsystem
All the parameters for the linear controller and non-linear controller need to be provided (could be in base workspce, or model ...

6年弱 前 | 0

回答済み
How run Simulink model automatically from itself if a condition is met?
Try it in PostSaveFcn, or have an independent and separate M-script to control your simulation.

6年弱 前 | 1

| 採用済み

さらに読み込む