Réponse apportée
How to make alternating signs on a matrix?
There are many ways. This is probably the easiest. E(1:2:end) is the 1, 3, 5,... th element of the matrix E(2:2:end) is the 2,...

plus de 5 ans il y a | 0

Réponse apportée
Merging two .sldd without duplicates
using API, you can go through all the entries in the two .sldd files, find duplicate ones and remove them from one of the SLDD ...

plus de 5 ans il y a | 0

Réponse apportée
Simulink vector to bit a second
If you want to feed a vector like [1, 0, 1 ... 0], in which every value is either 0 or 1, the total length is 1023, at a rate of...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to overlap plots from different scripts?
In the first script or function, do f1=figure and then plot; return f1 if it is a function. In the second script or function, d...

plus de 5 ans il y a | 0

Réponse apportée
Simulink from workspace block
When the data specified in the FromWorkspace block is an array, the first column is the time, so your data means that at time=1 ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
hello friends, when i done a modelling in simulink error "the "FixedStepDiscrete" solver cannot be used to simulate block diagram,because it contains continuous states" is occuring.... even i tried all the solver types but nothing worked.. help me..
You mean "all the solver" that are available?? Choose "ode45" or "auto". What is the error message if theare are any? It can't ...

plus de 5 ans il y a | 0

| A accepté

A résolu


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

presque 6 ans il y a

Réponse apportée
Simulink Custom Library of S-Functions
Usually, to make a S-function work, you need to compile the source code into a .dll file or .mex file using mex(). So for a cus...

presque 6 ans il y a | 0

Réponse apportée
How can we use find_system to get a block's SID
It is true that find_system() is not the real replacement. If full block path is used in Simulink.ID.getSID() to get SID, then t...

presque 6 ans il y a | 0

| A accepté

A résolu


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

presque 6 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

presque 6 ans il y a

Réponse apportée
I have a syntax error with Fcn
Use "sgn" instead of "sign". It is in the document. Click "Help" after double click the block.

presque 6 ans il y a | 0

Réponse apportée
About 1-d lookup table simulink
The curve shown at the look-up table block is the full picture of the look-up table data. For example, the range of the input mi...

presque 6 ans il y a | 0

Réponse apportée
Error when using step-command
tf() is supposed to define a Transfer Function. You might have a variable called "tf" or other function called "tf". Do the foll...

presque 6 ans il y a | 0

Réponse apportée
How can we Systematically pause Simulink model and update the variable and continue model from Matlab command line
Should work as you desired. Follow this example first. https://www.mathworks.com/help/releases/R2020a/sldrt/ug/sweep-matlab-var...

presque 6 ans il y a | 0

Réponse apportée
extract structure array value
%% correct data first MyData(6).User.Id= 45; MyData(6).User.Name= 'XXX'; %% then A=struct2array(MyData); result=[A.Id];

presque 6 ans il y a | 0

Réponse apportée
Stateflow, Determine Initial State
Use the default transition to pick any state as your initial state.

presque 6 ans il y a | 0

Réponse apportée
the data info from the cursor
Tools, check or un-check "Data Tips".

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How can I display the last value obtained in a scope block graph in Simulink?
You could log the data and the last value would be data(end). Or do it manually, on the Scope, tools, Measurements, Cursor Mea...

presque 6 ans il y a | 1

Réponse apportée
How can i solve this problem?
Double click the Bus Selector block and pick the right signal. The error might be caused by signal name change up-stream at its ...

presque 6 ans il y a | 3

| A accepté

Réponse apportée
Is it possible to add a custom button in the Simulink's model editor Explorer Bar
This Edit time Model Advisor checking seems to be a good solution. Check the lastest version to see if it can be done on a custo...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Use of sampletime in a constant block simulink
Double click the block, click 'Help', see the explaination for 'sample time'.

presque 6 ans il y a | 0

Réponse apportée
How to upgrade Matlab Online?
It seems that today is the release date for R2020b. You might have caught the interim switch of MATLAB Online. Wait a few days i...

presque 6 ans il y a | 0

Réponse apportée
Set of sequnce number
%% A=1:8; N=numel(A); Multiply=10.^(N-1:-1:0)'; B=A*Multiply C=dec2hex(B)

presque 6 ans il y a | 0

Réponse apportée
How to programmatically "click" the block mask Apply or OK button.
I don't understand the problem. If the block has a mask of a text area, when user opens the mask by double_clicking the block,...

presque 6 ans il y a | 0

Réponse apportée
Programmatically duplicate signal in Simulink
add_line('SubSysBlock','InportBlock/1','MuxBlock/1','autorouting','on') loop N times

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to create a bus for the scenario reader?
To resolve the error, open the MATLAB Function, click "Edit Data", Select "Bus: <object name>" from the dropdown list for "typ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Loading static library to be implemented in Simulink
Available since R2018b C Caller block

presque 6 ans il y a | 0

Réponse apportée
I need help with plotting Simulink output in Matlab
It depends on your saving format. It looks like you have "single simulation output" checked and the format is "dataset". Press C...

presque 6 ans il y a | 3

| A accepté

Réponse apportée
simulink/simscape final state 'cannot find a matching block state to element 135' output by the same model
This is frustrating! Try this, note the difference between 'Save complete SimState in final state' and 'Save Final States' http...

presque 6 ans il y a | 0

Charger plus