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

2년 초과 전 | 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 ...

2년 초과 전 | 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...

2년 초과 전 | 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 ...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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 ...

2년 초과 전 | 0

답변 있음
Pass a plot handle into a function argument
figure(1) xx=linspace(-pi,pi,100); yy=sin(xx); plot(xx,yy,'r-','DisplayName','sinus'); legend; hold on; % then plot a se...

2년 초과 전 | 0

| 수락됨

답변 있음
Breakpoint in Simulink MATLAB function block not working
Try sim("modelName","Debug","on")? https://www.mathworks.com/help/simulink/slref/sim.html

2년 초과 전 | 0

답변 있음
Sample Time from To Workspace not precise
If you use a ZOH block to measure the signal and specify the sample time of the ZOH block as Ts, then specify the sample time fo...

2년 초과 전 | 0

| 수락됨

답변 있음
Cannot load a Mat file into Simulink
Most likely due to incorrect data format. Look at this page under "Load Array Data" section. https://www.mathworks.com/help/sim...

2년 초과 전 | 0

| 수락됨

답변 있음
How can I find out the data type in the Simulink?
Click "Edit data" in the MATLAB Function block editor, you can set the data type of any data (input, output, data, etc.). Make s...

2년 초과 전 | 0

답변 있음
Extract variables saved to workspace from simulink
I would suggest you saving the data in time series format and use API to process it. https://www.mathworks.com/help/matlab/time...

2년 초과 전 | 0

| 수락됨

답변 있음
Simulink Scope viewing problem
Is the data points limited? Check "View", "Configuration properties", "logging"

2년 초과 전 | 0

답변 있음
Delaying Signal Builder Start in Simulink
This can be done through an 1-D lookup table. The trick is the input. Use your Switch output to enable an Enabled SubSystem bl...

2년 초과 전 | 0

답변 있음
3-D Simulation Vehicle Ground Following
set_param('mcityMonoCamera/Simulation 3D Vehicle with Ground Following','LeftHeadlightOrientation','[15 0]')

2년 초과 전 | 0

답변 있음
Unable to extract time and data from simout MATLAB
As it indicates in the Simulink model, the data is saved in "out.simU". So, add "simX=out.simX;simU=out.simU;" in front of your ...

2년 초과 전 | 0

답변 있음
Delaying Signal Builder Start in Simulink
Try to put the Signal Builder block inside an Enabled Subsystem block.

2년 초과 전 | 0

답변 있음
How can I change the Debounce time in Stateflow?
Typically, the value "5" in the two "after(5,sec)" statements is the time that the switch state needs to stay (without bounce) b...

2년 초과 전 | 0

답변 있음
How I can fix this "resolve underspecified signal dimensions." error message ?
There is not enough info in the model to determine the size of "Xc". Double check your code, make sure "Xc" is initialized or as...

2년 초과 전 | 0

답변 있음
Vectorizing a Simulink Model
Simulink supports vector, so if designed carefully, a single Simulink subsystem could process N velocity and postion to generate...

2년 초과 전 | 0

답변 있음
Simulink - Saving Base Workspace Variables
There are at least two other ways. Once all the .m files are executed, you can use save() to save the base workspace to a .mat ...

2년 초과 전 | 1

| 수락됨

답변 있음
Differences between the two Sample time settings in the MATLAB Function block in Simulink
This is a really good question. I've never noticed it before. I'll provide my take on it. You could contact the Mathworks' tech ...

2년 초과 전 | 0

| 수락됨

답변 있음
the use of Integrator block in subsystem
When the sample time is set to be -1, it means the sample time is "inherited".

2년 초과 전 | 0

| 수락됨

답변 있음
Is there any initialization block for parameters and constants in simulink model to be used throughout the model ?
Use a Simulink Data Dictionary (.sldd). Start from here https://www.mathworks.com/help/simulink/ug/migrate-models-to-use-dictio...

2년 초과 전 | 0

| 수락됨

답변 있음
Simulink If block error "Port 1 must directly or indirectly connect to one If Action Subsystem"
Outport 1 of the If block is also connected to another destination but it was not shown in the snapshot. Dis-connect that branch...

2년 초과 전 | 0

답변 있음
Convert array of numbers to an array of padded strings
stanums = 7:12; s=sprintf('%02d\n',stanums(:))

2년 초과 전 | 0

답변 있음
Hello, can someone please help me understand this error?
If the pulse width is 87.85%, then the gap of the pulses will be 12.15%. Then you have to be able to distinguish at least 0.05% ...

2년 초과 전 | 0

| 수락됨

답변 있음
How to do Simulink versioning
Mathworks has its own diff tool and it can be integrated with Git. Model Comparison

2년 초과 전 | 1

| 수락됨

더 보기