Réponse apportée
using xlsread for cell variable
In a very different approach, Use textscan instead of slxread or csvread

environ 11 ans il y a | 0

Réponse apportée
Concatenate two cells into another
Another way is, Ce = {'Aluno', '41563'}; C3 = [Ce{1} Ce{2}]; Mind the curly brackets _{}_ !

environ 11 ans il y a | 0

Réponse apportée
Locate Y given X and display on the graph
You can 'extract' the Data Cursor information to workspace for more accurate number. Right click on the data cursor point >> Exp...

environ 11 ans il y a | 0

Question


How to do it more efficiently?
Hi, In my script, this piece of code is taking about 70% of processing time. The idea is to create uniform timestamp, it ...

environ 11 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Display µm not correct in figure in Matlab
Try this, xlabel('Zsnsr [\mum]','interpreter','Tex')

environ 11 ans il y a | 0

| A accepté

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

environ 11 ans il y a

Question


SIMULINK: Integrator error: Derivative input -24 at time xx is Inf or NaN
Dear all. During simulation, i get error message "Derivative input -24 of _modelname_ at time _xx_ is Inf or NaN". It point o...

plus de 11 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Text out goes weird on Figure with underscores
Without adjusting your interpreter setting (keep LaTeX interpreter on), you can use backslash just before the underscore to keep...

plus de 11 ans il y a | 0

Réponse apportée
Sort Matrix Array and skip zeros.
If you know the starting value (say sort start from 1, instead of 0): tblA = [2 1 3 4 0 0]; vStartSort = 1 ...

plus de 11 ans il y a | 0

Réponse apportée
Is it possible to read a value out of a graph, and use this value in simulink?
After using the 'dwim' toolbox, I think you what you need is this one: <http://www.mathworks.nl/help/simulink/slref/1dlookuptab...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Change automatically colors and line style
Hi Alain, The _hold all_ command used the _ColorOrder_ . By default there are only 7 elements (read: colors) defined in th...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to change default action of a subsystem?
Perhaps something like this? open_system([gcb '/Scope']) Put it in your submodel OpenFcn callback. (Right click->propert...

plus de 11 ans il y a | 0

Réponse apportée
What is the use of flag in matlab coding ??
Hi, It depends on the logic flow of the code/ the script. It is ussually used to skip some part/condition of the code. ...

plus de 11 ans il y a | 0

Réponse apportée
Is it posible to substitute one value of one signal in simulink from code?
Perhaps you mean this? doc set_param

presque 12 ans il y a | 0

Réponse apportée
Ploting with axes exactly
What if your, datetick('x','DD mm');%cambiar a DD/mm changed to, datetick('x',19);%cambiar a DD/m...

presque 12 ans il y a | 0

Réponse apportée
Why the scope axis changes
<</matlabcentral/answers/uploaded_files/11715/simulink_scope_setting.bmp>> You need to *un*-check the option _Limit Data Poin...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to pass a parameter structure from m-file to Simulink?
Do you need to use a function? In my opinion, an m-file script would be sufficient. To change m-file function to m-file scri...

presque 12 ans il y a | 1

Réponse apportée
Change relay switch points during simulation
Heeeeeyyy Macarena, :) Perhaps with something like this? <</matlabcentral/answers/uploaded_files/11165/example2.png>> I...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How delete all message boxes from previous execution?
doc close Some variations: close all hidden close all force

presque 12 ans il y a | 3

| A accepté

Réponse apportée
How to define and use a variable as upper limit of the Saturation block in Simulink?
You can use _Min_ and _Max_ blocks instead of _Saturation_ block

presque 12 ans il y a | 0

| A accepté

Réponse apportée
what are steps to create a combination array ?
doc xlsread doc xlswrite to combine array C = [A B]; or C = [A,B];

presque 12 ans il y a | 0

Réponse apportée
how to get bytes of matfile
details = whos('-file','H.mat','H'); details.byte

environ 12 ans il y a | 1

| A accepté

Réponse apportée
plot a graph with 3 variables.
It depends on which plot type do you want, e.g. mesh(x,y,z) surf(x,y,z)

environ 12 ans il y a | 3

| A accepté

Réponse apportée
Simulation data storage- help
*Say:* * Your filename is 'untitled.mat' and located in your current folder * Variable name stored is 'var_1' * The "To ...

environ 12 ans il y a | 1

Réponse apportée
How to use a loop to calculate m*n values for an mxn matrix?
Is it something like this? A = [1 2 3 4; 5 6 7 8; 9 10 11 12]; B = [2 2 2 2; 3 3 3 3; 4 4 4 4]; >> C = A.*B ...

plus de 12 ans il y a | 0

Réponse apportée
Can this simple script be done without calling a function?
Please learn how to use debug mode.. <http://www.mathworks.nl/help/matlab/matlab_prog/debugging-process-and-features.html#brq...

plus de 12 ans il y a | 0

Réponse apportée
>> R1=1;L=10e-3;C1=10e-6;R2=10; A=[{-R1/L}{-1/L};{1/C1}{-1/{R2*C1}}]; B=[{1/L};0]; C[0 1]; D=[0]; ??? A=[{-R1/L}{-1/L};{1/C1}{-1/{R2*C1}}]; | Error: Unbalanced or unexpected parenthesis or bracket.
I don't know what you are trying to achieve, but i think you should start with perusing this... <http://matlab.wikia.com/wiki/F...

plus de 12 ans il y a | 0

Réponse apportée
getting data from plot ?
h = gcf; %handle of current fig axObj = get(h, 'Children'); datObj = get(axObj, 'Children'); xdata = get(datObj, 'XDa...

plus de 12 ans il y a | 3

Réponse apportée
saveas vs. "File->Save as"
For an alternative, try using _hgsave()_ instead of _saveas()_

plus de 12 ans il y a | 0

Réponse apportée
How can I quickly know if all my functions are in the directory
By using _depfun()_, perhaps?

plus de 12 ans il y a | 0

Charger plus