Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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 ...

environ 6 ans il y a | 0

Réponse apportée
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.

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How to access WLAN toolbox since it doesn't show up?
WLAN Toolbox is a toolbox under the "application products", not under the "Simulink" catagory. I have the toolgox but don't see ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
For loop for function values
Don't create variables R1, R2, ... R5. Instead, create array R, use R(1), R(2), ... R(5). Then you can run your for-loop.

environ 6 ans il y a | 1

Réponse apportée
Is there a way to open the on-screen keyboard in Windows from Matlab?
winopen('C:\WINDOWS\system32\osk.exe')

environ 6 ans il y a | 0

Réponse apportée
cannot find a help folder
You probably don't have the Communications Toolbox installed. run "ver comm"

environ 6 ans il y a | 0

| A accepté

Réponse apportée
error message Conversion to logical from matlab.graphics.GraphicsPlaceholder is not possible
replace "while findobj(0,'Type','figure','Name',figName)" with "while isempty(findobj(0,'Type','figure','Name',figName))"

environ 6 ans il y a | 0

Réponse apportée
PROBLEM WITH LOOKUP TABLE
You must have been trying to do that in a Simulink Library file, not a Simulink model file. If you really want to customize this...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Howto replace Element with Element from another Vector at the 1st Element's Position
A=10:10:100; B=[3,10,nan,2,nan]; index=~isnan(B); B(index)=A(B(index)) B = 30 100 NaN 20 NaN

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Simulate continous model at predetermined time (Simulink)
If you can't really make the two sets of data have the same time samples, then you can utilize resample().

environ 6 ans il y a | 0

Réponse apportée
Saving data at the end of a simulation to use it at the beginning of another simulation
Ctrl+E to open configuration parameters, Data Import/Export, un-check "Single simulation out" will save the "To Workspace" to "P...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Disabled a button with Simulink
Try this. Put all those blocks inside an Enabled Subsystem. Use your logic to Enable/Disable the subsystem.

environ 6 ans il y a | 0

Réponse apportée
Using the first value of a variable during simulation in Simulink
If the triggered subsystem is truly ran only once, then you don't need to do anything. The output value of this block is "held"....

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Error using matlab.ui.control.EditField/set.Value 'Value' must be a character vector or a string scalar.
The value for "app.BeginningEditField.Value" needs to be a character vector or string scalr. datetime() returns an object of the...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to retrieve the location of the points plotted ordered
If you run plot(x,y) instead of plot(x,y,'o'), you will see the correct curve. So your data is already "sorted" as you wanted. I...

environ 6 ans il y a | 1

Réponse apportée
Is there a way to programmatically display documentation pages for the methods of the Simulink.SimulationInput class rather than the page for class?
Use web() instead of doc() web(fullfile(docroot, 'simulink/slref/setpostsimfcn.html')) web(fullfile(docroot, 'simulink/slref/s...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Throw an error when more than one result is returned
use files=dir('*data.csv'); size(files)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Duty cycle Matlab funciton is Simulink. Error! -Undefined function or variable 'duty_cycle'. The first assignment to a local variable determines its class.
Two comments. Feed the "duty_cycle" to a "unit delay" block and then connect it to "past_duty". The first line inside your MAT...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Enable and Disable input/output subsystem's ports in Simulink
Variant Subsystem now supports various number of Inports and Outports of its variants. You can do it using the Variant Subsystem...

environ 6 ans il y a | 0

Réponse apportée
If Action Block that create a stairstep signal in simulink
The "sample time" of the Constant block might have been set as "1" second.

environ 6 ans il y a | 0

| A accepté

Réponse apportée
what this matlab syntax var1= input.var2 corresponds to ?
It is called struct. Follow the link to see the document and you can try youself. input.var2=2; input.var3=rand(3); MyVar=inp...

environ 6 ans il y a | 0

Réponse apportée
Simulink Model Export as Video
If you have Windows 10, you can use the built-in capability with Windows Game Bar. Google "How to Capture Video Clips in Windows...

environ 6 ans il y a | 0

Réponse apportée
Apply function with multiple input variables to table entry
function_handle might be what you need.

environ 6 ans il y a | 0

| A accepté

Réponse apportée
In a single line, create a handle to the " +" function.
h=@plus; h(1,2)

environ 6 ans il y a | 2

| A accepté

Réponse apportée
How to choose a random coordinate (location like i,j) in a matrix
[m,n]=size(A); i=randi([1 m]); j=randi([1 n])

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Stripping outputs from dir function
fileList = dir('*.png')

environ 6 ans il y a | 0

| A accepté

Réponse apportée
matlab space error problem
From "help strcat" For character array inputs, strcat removes trailing ASCII white-space characters: space, tab, verti...

environ 6 ans il y a | 0

Réponse apportée
Sizing in subplot()
subplot(3,2,x) gives you 3 rows and 2 columns thus 6 subplots. x can be 1,2,...6

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to recall a figure which was generated by a name "fname = figure; figure(fname)" without saving it ?
When you run fpressure=figure, it creates the figure object handle fpressure. But after you clear the workspace, the figure obje...

environ 6 ans il y a | 0

Charger plus