Réponse apportée
Coordinates related to rbbox in GUI
You could just do like the example in RBBOX, and use the currentpoint property of the axes instead... figure; pcolor(pea...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
saving multiple vectors with different lengths in one matrix
You can use cell arrays, or pad with zeros. For example: v1 = [2 3 4 5]; v2 = [2 3 4 5 6 7]; % Make padded array. Co...

environ 15 ans il y a | 26

| A accepté

Réponse apportée
Converting hhmmss.mmm to hh:mm:ss.mmm, or something like that
It is not clear to me whether you want a number or another string in a different format. If you want a number, stop after the f...

environ 15 ans il y a | 0

Réponse apportée
Subtract combinations of variables in a vector
Another approach: S = -diff(nchoosek(vec,2),[],2)

environ 15 ans il y a | 1

Réponse apportée
Help with commands varargin and switch
Probably the best thing is for you to read the doc on these topics. <http://www.mathworks.com/help/techdoc/ref/varargin.html VA...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How do I make a function read all the images in a directory?
I = dir('*.jpg'); % or jpeg or whatever. for ii = 1:length(I) C{ii} = imread(I(ii).name); % Store in a cell array....

environ 15 ans il y a | 1

Réponse apportée
Division of a square
I am not sure this is what you mean, but here is a graphical demonstration of what I think you mean. % Data n = 16; % Div...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
extract matrix from for loop
Use cell arrays, or stack along the third dimension. for loop=1:1:10 m=[a b c d]; % I assume this is only a place-holde...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
expanding matrix
Here is a general purpose file for doing the same thing. What you are basically doing is finding the permutations of the set [x...

environ 15 ans il y a | 1

Réponse apportée
Order two related vectors
For example: A = [3 1 4 2]; B = {'Bob' 'Jeff' 'Mike' 'Len'}; [As,I] = sort(A);As Bs = B(I)

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Polyfitting warning
I'll take you at your word that you know what you are doing. ws = warning('off','all'); % Turn off warning P = poly...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Anyone know a good resource for using Bloomberg through MATLAB?
A quick search of the FEX leads to <http://www.mathworks.com/matlabcentral/fileexchange/?term=Bloomberg several candidates>.

environ 15 ans il y a | 0

Réponse apportée
Stop a calculation
About the only thing you can do in general is hold down the control key and the c key at the same time. If MATLAB is really inv...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
FInd vector in matrix
For example: A = reshape(1:12,6,2) % A sample matrix for demonstration... I = ismember(A,[4 10],'rows'); If you want to ...

environ 15 ans il y a | 1

Réponse apportée
How can i find "AND" or "OR" of rows in a matrix?
A = round(rand(3,10)) all(A) % A(1,:) & A(2,:) & A(3,:) any(A) % A(1,:) | A(2,:) | A(3,:)

environ 15 ans il y a | 1

Réponse apportée
Combination calculations and matrix manipulation
Here is how to get all of them using <http://www.mathworks.com/matlabcentral/fileexchange/11462-npermutek NPERMUTEK> A = [...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Sum of Maple to MATLAB
It would help, for those of us who do not have Maple and consequently do not know what the result of that Maple command is, if y...

environ 15 ans il y a | 0

Réponse apportée
Problems with fscanf
For some reason FOPEN did not find dados.txt. Is it in your current directory?

environ 15 ans il y a | 0

Réponse apportée
Integration Problem
Don't use symbolic variables for numerical problems. I assume you want a numeric answer because you are using numeric routines ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
UIGetfile Operation - Appears to OPEN/COPY .mat files, opposite what the documentation says?
I don't know why the MAT-file would show up under Recent unless (as you are aware) it is being opened. Have you tried a custom ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Error message not connected
t = serial(...) % Try to open the connections. u = serial(...) try fopen(...) catch errordlg('First Motor no...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Image Pixel Values
In addition to what others have said, this line: if z = impixelinfo(m,n) >=1 % Are you sure about the 1? is an incorrect us...

environ 15 ans il y a | 1

Réponse apportée
how to get my plp?
<http://www.mathworks.com/support/install.html Contact MathWorks support>.

environ 15 ans il y a | 0

Réponse apportée
ode45 - solving 2nd Order ODE IVP problem
[t,y] = ode45(@lander, 0:.005:6, [20,67.056]); % Calculate the acceleration from the velocity... acc = diff(y(:,2))/(t(2)-...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How i can estimate the hurst parameter for a matrix of topographic data?
Would you mind elaborating on what "It doesn't work" means? Does it error? If so, what does the error message say. If not, wh...

environ 15 ans il y a | 0

Réponse apportée
String array and Numeric values
% Say your String cell looks like this: S = {'Ted' 'Jim' 'Nancy'} % To change by name: cname = 'ted'; % User want...

environ 15 ans il y a | 1

Réponse apportée
how to save outputs of a loop in vectors to use later ??? urgent please help
I don't see a th2. Assuming you meant one point per loop iteration... l1=0;%input('input l1: '); l2=3;%input('input l2: '...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
dividing a circle into six equal parts
You could write a custom function to do this: function P = plot_arc(a,b,h,k,r) % Plot a circular arc as a pie wedge. % a ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
adding numbers in an M file
A loopless version... a = input('Enter number of days you would like to know the total of: '); S = sum(.01.*2.^(0:(a-1))) ...

environ 15 ans il y a | 0

Réponse apportée
Interpreter. Computational time
SIZE and LENGTH are not the same thing! size(rand(2,10000),1) length(rand(2,10000)) You should show what your data loo...

environ 15 ans il y a | 0

Charger plus