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

más de 2 años hace | 0

Respondida
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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 1

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

más de 2 años hace | 1

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 1

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

Respondida
Simulink Scope viewing problem
Is the data points limited? Check "View", "Configuration properties", "logging"

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

Respondida
Delaying Signal Builder Start in Simulink
Try to put the Signal Builder block inside an Enabled Subsystem block.

casi 3 años hace | 0

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

casi 3 años hace | 0

Cargar más