Réponse apportée
Error: Inner matrix dimensions must agree.
<http://www.mathworks.com/matlabcentral/answers/2210-error-correction-inner-matrix-dimensions-must-be-same-how-to-correct Error ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Left digits
n=num2str(1234) n1=str2num(n(1:end-1))

plus de 14 ans il y a | 0

Réponse apportée
How do I make an if, elseif, else statement?
The correct way to do the conditions is this: if 0<x & x<10 y=4*x elseif 10<x & x<40 y=10*x else ...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Help with execution-programs
<http://www.mathworks.com/products/demos/compiler/deploytool/index.html Maybe this will help you>

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Selecting part of a string
surely not the best way to do it but here is my way v=['a.txt' 'b.txt' 'c.txt' 'd.txt'] cell2mat(arrayfun(@(x)strtok(x,'.tx...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Karhunen-Loeve Transform
You can get some examples on the <http://www.mathworks.com/matlabcentral/fileexchange/ FEX>, just search for them or other ways ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Curl in Polar Coordinates
doc cart2pol

plus de 14 ans il y a | 0

Réponse apportée
Calling a variable from a variable
assignin('base',char(V(2)),3000)

plus de 14 ans il y a | 0

Réponse apportée
GUI handles problem... throughout code it vanishes!?
When you do handles.LAIi=LAIi; you must also update the handles structure guidata(hObject, handles);

plus de 14 ans il y a | 0

Réponse apportée
Making a NxN matrix.
We don't make homeworks, we only help with answers to specific questions and if we are kind enough we might give some tips: d...

plus de 14 ans il y a | 1

Réponse apportée
Changing the atan function so that it ranges from 0 to 2*pi
The <http://en.wikipedia.org/wiki/Atan2 Wikipedia> got all explained, you just need to do the code, it's very simple. functio...

plus de 14 ans il y a | 1

Réponse apportée
trying to accounting the number of zeros in random script
a=randint(1000,1); numel(a(a==0)) or sum(a==0) or numel(a)-nnz(a)

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Other uses of the unique function
unique(a,'rows')

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
putting a text in a white space on a plot
What you are asking for isn't easy to implement but can be done, what the code has to do is the search for one empty space big e...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
put a space in a text
s=['this is ' num2str(1) ' my cat'] strcat ignores trailing ASCII white space characters and omits all such characters from t...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Finding If a sub-array (1d) is there in a 2d array
For the example provided array2D = [1 2 3; 4 5 6; 6 7 8] v1= [4 5 6] [tf,loc]=intersect(array2D,v1,'rows') loc gi...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
get the name of variable
No variable was assigned to x, the code x=myData; just copies the contents of the variable myData to the variable x, you are the...

plus de 14 ans il y a | 0

Réponse apportée
How can comet3 be modified to have a disappearing tail?
edit comet3 change all the erasemodes to background, it's in the line functions, example: 'erase','none' -> 'erase','ba...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
set and get on two gui
The error is in the line: mainGUIhandle = main; In that context MATLAB doesn't know what the variable main is because i...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
strcat including space (i.e, ' ')
c=[a ' ' b] strcat ignores trailing ASCII white space characters and omits all such characters from the output. White space c...

plus de 14 ans il y a | 5

Réponse apportée
Automated concatenation of variables into matrix then separation of matrix into variables containing original variable names
%without any verification of the format of all variables a=[1 2 3] b=[4 5 6] lvar=who; c=cell2mat(cellfun(@eval,lv...

plus de 14 ans il y a | 0

Réponse apportée
command doesn't work from inside a loop in a script but works fine in the command window
Do you have one m file or function called z.m? having one can cause the error: _Undefined function or method 'z' for input ar...

plus de 14 ans il y a | 0

Réponse apportée
Creating simulink block and hidding the code
http://www.mathworks.de/matlabcentral/answers/552-protecting-a-simulink-block-with-a-password

plus de 14 ans il y a | 0

Réponse apportée
save
save(['C:\' s],s) %save the mat file with the same name as the variable

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
naming variables
s='myData' Var1=[1 2 3] assignin('base',s,Var1)

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Save
To save all the variables that are inside the function to the file MyFunVariables.mat in the current directory do this save('...

plus de 14 ans il y a | 0

Réponse apportée
What is your unusual use of MATLAB?
I used MATLAB to see how bad was the damage on my phone touch screen and to minimize the error, got the alignment values from th...

plus de 14 ans il y a | 3

Réponse apportée
Why do I receive an error when I run this code?
Bad use of the poly2sym function, you give a string for the first argument but the function expects one array. Also the z shoul...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How can I convert num and den to strings?
nums=num2str(num{:}); dens=num2str(den{:});

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
what's the time of pause(1)
*pause(n) pauses execution for n seconds before continuing*, where n can be any nonnegative real number. The resolution of the c...

plus de 14 ans il y a | 1

Charger plus