已回答
How to add blocks and lines to Simulink subsystem upon model initialization?
"I would like to add these blocks programmatically upon model initialization". What is your definition of "model initialization"...

9 months 前 | 0

已回答
How to add several forced line breaks inside a table cell, when I try to generate a Microsoft word report using Matlab?
I tried and the line break in a cell in an Excel file is char(10). I think it is likely the same in Word. In MATLAB, newline is...

9 months 前 | 0

| 已接受

已回答
Run functions before Simulink starts
The PreLoadFcn or InitFcn callback. https://www.mathworks.com/help/simulink/ug/model-callbacks.html

9 months 前 | 0

已回答
where i can get MISRA AC SLSF 2023 documentation or pdf or Quotation to buy?
https://misra.org.uk/product/misra-ac-slsf2023/

9 months 前 | 0

已回答
Why does argmin index of NaN array have a value of 1 and not NaN?
Maybe the index is indeed returned by matching the min value to the input vector. Why does it matter? What is the significance i...

9 months 前 | 0

已回答
Standalone code generation is not supported for model
It sounds like that you can't do standalone code generation on this "component model". You have to create another "main" model, ...

9 months 前 | 0

已回答
Modify or adding data in SimulationOutput
"Caching the results of the first simulation run. Perform the second simulation run." If you can do both of the above, then you...

9 months 前 | 0

已回答
How to add multiple "display" block to multiple subsystems in a simulink file programmatically
Yes you can do it programmingly. see help for find_system() and do something like this: AllSys=find_system(ModelName, 'SearchDe...

9 months 前 | 0

已回答
How to fix the problem of fetching the simulink block from the customized library in the matlab app designer using matlab app designer code?
It is because your customized library is not set up as "simulink/mylib". It is unlikely you can add your library to underneath "...

9 months 前 | 0

已回答
How to import constant data from an Excel sheet into Simulink
Use Constant blocks to specify these values in the Simulink model. Use Variables to specify the value for those Constant blocks....

9 months 前 | 1

| 已接受

已回答
How to "Create new data" for a custom library block
Create a Mask for your customized library block, then when you double click the block, you will have a dialog to specify that pa...

9 months 前 | 1

已回答
How can I overlay Simulink curves obtained when model parameters are changed?
Not on the Scope block, but these days you can utilize the Simulink Data Inspector (SDI). Run simulation multiple times and then...

9 months 前 | 1

| 已接受

已回答
Data Object Wizard Usage - Does Base Workspace encompass Model Workspace?
"If you create the signal object in a model workspace, you must set the Storage class parameter to Auto.", from https://www.mat...

9 months 前 | 0

已回答
how can I fix this error "Illegal use of reserved keyword "end"."
It seems that you have an extra line of "end". Just delete that line

9 months 前 | 0

已回答
Input signal as vector with time in simulink
u1 = [Data(:,1) Data(:,2)], u2 = [Data(:,1) Data(:,3)] and u3 = [Data(:,1) Data(:,4)] The way you construct the data for "From ...

9 months 前 | 0

已回答
How to set "Argument" property of a Simulink.Parameter programmatically ?
See below, A Simulink.Parameter object does not have a property called "Argument". a=Simulink.Parameter Update after the disc...

9 months 前 | 0

已回答
Matlab Function Block in a Simulink Model
You can't expect to achieve your goal by doing this. The sequence of the MATLAB Function block can be simplified as this, read ...

9 months 前 | 0

| 已接受

已回答
Simulink - Input Dialog box while saving the model
Utilize the 'PreSaveFcn' callback of the model, where you can launch a dialog window, ask the user to input a new version number...

9 months 前 | 1

| 已接受

已回答
how find idx string deleted
a={'aa','bb','cc','aa'}; [b,ida,idb]=unique(a,'stable') setdiff(1:numel(a),ida)

9 months 前 | 0

| 已接受

已回答
How Simulink handles calls to discrete blocks
That is right. Read this. For every integration step, the derivative function needs to be called between 4 times (for RK4) and 6...

9 months 前 | 0

已回答
How do you search for a number in a cell array containing different length arrays?
a=[{[2 5 8 9]} {[1 2 4 5 7 10]} {[3 5 6 7 8 9 10]} {[1 2 3 5 8 9 10]} {[1 2 4 6 8 9]},... {[1 3 4 5 6 8]} {[1 2 4]} {[4 5 7...

9 months 前 | 0

已回答
Simulink crashes very often during normal work
It seems like a Simulink issue due to software bug or system/installation. You can further check to see if the same problem happ...

9 months 前 | 1

已回答
Simulink simulation error. Conflict with 2 different dimensons
Double click the "For Each" block and check the mark for partition for input "Current". All other inputs are partitioned but not...

9 months 前 | 1

已回答
Customizing variables and scopes in simulink code generation
To control how parameters and signals are created in the generated code, you need to use Simulink.Parameter and Simulink.Signal ...

9 months 前 | 0

| 已接受

已回答
edit .mat values to match
According to "doc audioread", Audio data in the file, returned as an m-by-n matrix, where m is the number of audio samples rea...

9 months 前 | 0

已回答
Pass Function Handles from MATLAB to Simulink
Design all those functions as Simulink Functions. A Simulink Function can be called in Simulink and/or inside a MATLAB Function ...

9 months 前 | 1

已回答
Programmatically comment blocks residing in a subsystem
If doing it programmingly, never use "gcb" or "gcs". Instead, use the full block path like "RootModelName/SubSystemName/BlockNam...

9 months 前 | 0

已回答
How to pick a random number from a set of numbers in simulink?
The MATLAB Function block is like any other blocks. It will execute at every simulaiton step. The best way is to put this MATLA...

9 months 前 | 0

已回答
Help with State Transition Table
[0<distance<10] is not the correct syntax. Your state stays at the default. changing all to style [0<distance && distance<10] s...

9 months 前 | 0

已回答
Data 'gestureType': Character outputs are not supported in Simulink and Stateflow. Cast 'gestureType' to int8 or uint8 instead.
MATLAB Function block does not support 'char' data type, so you can't write y='abc' for example. But since R2019b, it supports ...

9 months 前 | 0

加载更多