Réponse apportée
storing matrix elements in a single variable as string
Use for-loop if want to split A = [3 25 100 5 20 100]; >> B=sprintf("%d#%d@%d\n",A(:)) B = "3#25@100 5#20@100 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
finding the index of an array in cell array
arr ={[1,2,3],[4,45,6]}; >> index=find(cellfun(@(x) all(x==[1 2 3]),arr)) index = 1

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to add the "Plottools" icon to plot control ribbon.
On the figure, click menu "View", check "Figure toolbar" or "Plot Edit Toolbar" or others.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How do i fix return error in matlab?
This is a warning, not an error. If the code "return" here (which means exiting the function), the varialbe "rho" may never be ...

plus de 5 ans il y a | 0

Réponse apportée
Convert from R2019b to R2019a
Open the model, click menu "File" then "Export model to"

plus de 5 ans il y a | 0

Réponse apportée
Unable to use curly braces to index into cell
Where is your variable "cell" defined? cell() is a function. Use some other name.

plus de 5 ans il y a | 0

Réponse apportée
Open figure in new window instead of next to editor using figure object
%% close all; f=figure('Name', 'FFT-Test','position',[150,0,1000,650]) f1=subplot(4,1,1,'Parent',f) plot(1:10) f4=subpl...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Continue, step in , step out are disabled after error in program
run "dbstop if error" and then run your porgram and debug run "dbclear if error" to go back to normal

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Summing two binary vectors
%% a = [1 0 1]; b = [1 1 0]; s=dec2bin(bin2dec(num2str(a))+bin2dec(num2str(b))) out=str2num(s(:)) out = 1 0...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
where to place the "From" block in this simulink model
These are warnings not errors. These warnings are usually fine. It means thoese two connections are created but not used. Take...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to get selector block configured as seen below?
start from default, set "Inpurt port size" to be 2, set "Index" to be 2

plus de 5 ans il y a | 0

Réponse apportée
Converting string to a double
Are you sure? >> format long >> a=str2double('1.7356922617E-3') a = 0.001735692261700

plus de 5 ans il y a | 1

Réponse apportée
Eliminating the rows from a matrix
index=A(:,end)<4; A(index,:)=[]

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Save disp to a text file
help diary

plus de 5 ans il y a | 0

Réponse apportée
Dimensions being inconsistent even though nothing has changed the output
Double click the Outport block "Height" to check its properties. The question mark is referencing an issue there.

plus de 5 ans il y a | 0

Réponse apportée
Simulink does not start
try to run "slLibraryBrowser". It seems there are problems with the Simulink template files.

plus de 5 ans il y a | 0

Réponse apportée
if expression it is not triggered
Give some tolerance. They are not exactly the same in the world of floating-point data. >> 1-1/3==2/3 ans = logical ...

plus de 5 ans il y a | 1

Réponse apportée
SIMULINK: Import Variables from Workspace
The "From Workspace" data in Simulink needs to have a time. If you set the two "From Workspace" block data like this, you will b...

plus de 5 ans il y a | 0

Réponse apportée
Why i am getting "Set solver type of referenced model 'Drivetrain' to Fixed-step." error? How can i fix it?
The easiest solution is to click the "Fix" buttons and hope they all can be resolved. The reasons were briefly given in the mess...

plus de 5 ans il y a | 0

Réponse apportée
How to change the button names depending on different situations?
a=uicontrol; a.String='load' a.String='plot'

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to change property of multiple gain block?
Use block handles to change multiple blocks in one shot, assuming the values are the same. Turn on 'FindAll' to return block han...

plus de 5 ans il y a | 0

Réponse apportée
The block value shortcut does not show up in Sİmulink
Simulink Preference, Editor, Enable smart editing features

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Matlab 2017a does not support Microsoft Visual 2010++ Professional compiler?
Unfortunately, you are out of luck. Look at this document, VC++ 2010 is not supported by R2017a. https://www.mathworks.com/cont...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to pass a data dictionary parameters as an argument in a model reference?
I don't think there is a direct way to do this currently in R2020a. I suggest you try a workaround. Specify an argument, which ...

plus de 5 ans il y a | 0

Réponse apportée
When i covert a structure to cell array, my fieldNames disappear
There is no meta data text info for cell array. Use struct2table() to convert structure to table.

plus de 5 ans il y a | 0

Réponse apportée
Setting the end time in Simulink through an m-file; Online help seems to be wrong and unhelpful
Open the model, run the first line and check the model, you will see the 'StopTime' is changed. The problem is with the second ...

plus de 5 ans il y a | 1

Réponse apportée
Import Matlab matrix to Simulink
See this link and open the "Read 2-D Signal" example https://www.mathworks.com/help/releases/R2020b/simulink/slref/fromworkspac...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How can I determine if a value is in the interval?
if and(value>array(1), value<array(end)) display('inside'); else display('outside') end

plus de 5 ans il y a | 2

Réponse apportée
How do I get index matrix for matrix of values?
>> [Row,Column]=ind2sub([3,3],1:9) Row = 1 2 3 1 2 3 1 2 3 Column = 1 1 1 ...

plus de 5 ans il y a | 1

Réponse apportée
How to delete empty files/spreadsheets in a directory ?
run [STATUS,SHEETS] = xlsfinfo(FILENAME). Most likely, it will tell you there is only one sheet run [NUM,TXT,RAW]=xlsread(FILEN...

plus de 5 ans il y a | 0

Charger plus