Réponse apportée
Expanding Matrix
I wrote the <http://www.mathworks.com/matlabcentral/fileexchange/24536-expand EXPAND> function to do just this, in the general c...

environ 15 ans il y a | 2

Réponse apportée
Combining multiple M-files
Simply call them one right after the other >> File1,File2,File3 . . . *EDIT* Updated in response to an email from Sher...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
max value
Better to use the capabilities of MAX, than to use FIND and a comparison. [mx,I] = max(x); % mx is the maximum value, I i...

environ 15 ans il y a | 3

| A accepté

Réponse apportée
For loops and zero MATLAB experience
. . . *EDIT* I had that wrong. This should work: A = rand(700,2); B = zeros(3*700,700*3); % Store data here cnt =...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
how to make loop
L = length(x) N = L; % The largest number. Change to whatever... a = 3; % The starting point. Change to 3,5... whatever ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
repmat
N = 2; % The number of times each element will repeat... h2 = reshape(repmat(h,N,1),1,N*length(h))

environ 15 ans il y a | 2

| A accepté

Réponse apportée
Using RRBOX with a button on a figure
If you click on the pointer arrow 2 times, the cursor will be back like it was when the plot was first made.

environ 15 ans il y a | 0

| A accepté

Réponse apportée
import time
You still have not answered all the cyclist's questions. Go back and read hist questions, then write *_detailed_* answers to th...

environ 15 ans il y a | 0

Réponse apportée
colorbar
Is this what you are looking for? % Make your surface plot, then: shading('interp')

environ 15 ans il y a | 0

Réponse apportée
storing
I would offer two criticisms of your code. First, you are using the built-in MATLAB variable i as a loop index. This will bite...

environ 15 ans il y a | 0

Réponse apportée
How do I input data using GUI inside a loop?
I would use an INPUTDLG here. prompt = {'Enter the number of header lines:'}; name = 'Header lines..'; for i =1:200; ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
how to make a loop(for...end)
It would be good if you learned to pre-allocate your vectors so your code runs efficiently... . . . *EDIT* In response to q...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Comparing two images/pictures
You will have to quantify what you mean when you want to know if images match. Do you mean that they should be identical? Or t...

environ 15 ans il y a | 1

Réponse apportée
plot 8 cycles sin graph, convert to discrete and measure?
I don't know what you mean by "convert the graph to a discrete function." Do you mean you want to get a point from the graph? ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Comet: How can slow down the animation?
I modified my version of COMET to accept another argument. Then in the file I have a default value for this argument of 0. Thi...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Fliplr and flipud functions no longer accepts vectors
According to the <http://www.mathworks.com/help/techdoc/ref/ismatrix.html documentation>, ISMATRIX returns true if size(A) is [m...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Textures for bar plots
You could do it with LINE objects, though it would take a little fiddling: B = bar([3 4 5],.75) xd = get(B,'xdata') ...

environ 15 ans il y a | 0

Réponse apportée
Lagrange Interpolation code
As Paulo indicates, MATLAB Answers is not a Homework solving service. However, if you show some effort (code) and ask specific ...

environ 15 ans il y a | 1

Réponse apportée
Datacursormode
If you right-click on the cursor and select: Edit Text Update Function You can change both calls to NUM2STR from: ...

environ 15 ans il y a | 0

Réponse apportée
Why doesn't this file work?
How are you calling the function? You need to call a multiple return argument function with multiple return args: [LEN, A...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
GUI
Yes, set the foregroundcolor property to the color you want. set(handles.Ball,'string','Danger Defect at','foregroundcolo...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Nesting for loops and if statements in MATLAB
Put the first FOR loop in a function. Then, in your program, call the function, enter the second FOR loop, evaluate the conditi...

environ 15 ans il y a | 0

Réponse apportée
legend dynamically updated
How are you updating the plot? In a loop?

environ 15 ans il y a | 0

Réponse apportée
Mutually Exclusive Booleans in a single Switch
Although there appears to be nothing wrong with your multiple IF statements (except that perhaps the comparison to 1 is not nece...

environ 15 ans il y a | 0

Réponse apportée
ring (annulis) patch?
This might serve your purpose. The function creates an annulus object and allows you to set the linestyle and edgecolor while p...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
Help to solve n equations with two unknowns
It looks like you have two unknowns and one equation. How do you think there is a unique solution? PV * F = C - P + K * PV ...

environ 15 ans il y a | 0

Réponse apportée
Help Please! Numerical methods help
You are missing a dot (.) and a minus (-). x=logspace(-12,12,100); s =.5.*(exp(x)-exp(-x)); S = sinh(x); aS = abs((s...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Permutation Matrix on a Vector
If I understand your question correctly, there is no unique solution. You can understand this by looking at a 2-by-2 system. ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Boxplot: second Y axes labels
Hey Oleg, I don't have the Stats toolbox so I can't try it out. But I have an idea. Make one figure with plotyy, then make ano...

environ 15 ans il y a | 0

Réponse apportée
How can I determine if a help dialog box is open, and then close it if it is open
For future reference, FINDOBJ won't return the handle to objects which have handlevisibility set to off. Use FINDALL instead. ...

environ 15 ans il y a | 3

Charger plus