Réponse apportée
How can I use the variable name in the WORK PLACE inside a function?
function myplot(x); plot(x); title (inputname(1)) end

presque 14 ans il y a | 0

Réponse apportée
how to count key presses in limited time?
I would do it just like I showed you before, but add a keyreleasefcn. So when the user pushes the correct key, a value is set. ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
putting return to a function
Salvatore, are you asking how to make the function return the value that will be assigned to 'value' inside my_function? In MAT...

presque 14 ans il y a | 2

Réponse apportée
How to align the figure name to the left ?
About the only thing I can think of is to buffer with spaces, but then resizing the figure wouldn't preserve this. set(gc...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Put text in a figure that is not a graph/plot
Your description is vague. U = uicontrol('style','edit',... 'units','norm',... 'pos',[0...

presque 14 ans il y a | 0

Réponse apportée
Is it possible to overwrite any of these variables:pi, eps, inf, i ? If so, how can it be undone?
Those are *not* variables, but _functions_. which pi which eps You can mask any function with another function or a l...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Create a matrix with unique coloms and rows
Your matrix can be made with this: perms(1:3).' % For larger problems even ordered sets take time!! This is signifi...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Ending an infinite loop
With I initially at 100, you may never get out of the loop. This will go until I gets to the origin (or ctrl+c). I = 5; ...

presque 14 ans il y a | 0

Réponse apportée
What is the cause of undefined variable or function error.
MATLAB is case sensitive. Target, target, tarGet, TarGet are all different things. If your function is named target, don't cal...

presque 14 ans il y a | 0

Réponse apportée
Why does reversing an axis direction change shading properties?
I am not sure if this will help at all. It might help if you provide some code. Here is what I did to simulate what I see in y...

presque 14 ans il y a | 0

Réponse apportée
Generating Biased Random Number
Without the stats toolbox: A = 0:23; % The given array. % Now lets sample it. N = .5e5; % This many samples.. ...

presque 14 ans il y a | 0

Réponse apportée
In an assignment A(I) = B, the number of elements in B and I must be the same.
You are trying to put a vector into a single element of x.... That won't work. What are you trying to do here? It looks like ...

presque 14 ans il y a | 0

Réponse apportée
Eigenvectors of Complex Matrix
The regular EIG function seems to work: A =[0 1+i 2i 3;1+i 0 3 1+4i;2i 3 0 1i;3 1+4i 1i 0]; [E,V] = eig(A)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Parse a cell array of strings without looping
C = {'122.8233,216.1323,671.8740' '122.8233,216.1323,671.8740' '122.8233,216.1323,671.8740' '122.8233,...

presque 14 ans il y a | 0

Réponse apportée
Repeating one loop without adding data to the array
From your description, you only want the variable 'nest' to grow and the FOR loop to continue if newnest is less than oldnest. ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Advanced logical matrix indexing
Given this array: A = [1 1 1;2 2 2;3 3 3] % Must be n-by-n % Remove the ith element of each ith column. B = reshape(A...

presque 14 ans il y a | 0

Réponse apportée
changing the Extent property in UIcontrol?
I suggested to you yesterday to read the <http://www.mathworks.com/help/matlab/ref/uicontrol_props.html documentation on uicontr...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
why does pushing buttons affects my GUI?
You might want to use the WindowKeypressfcn instead. Having said that, you might want to consider your overall design. Part of...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
problem with the min function or the 1.8509e+007 ??
There is no problem that I can see. Yes, 1.847e7 is less than 1.851e7 and 2.396e7. Why would you expect anything else?

presque 14 ans il y a | 1

| A accepté

Réponse apportée
difference between buttondownfcn and keypressfcn
Buttondownfcn is for the mouse button. docsearch('uicontrol properties')

presque 14 ans il y a | 0

| A accepté

Réponse apportée
how to count key presses in limited time?
One could also do it without the use of a timer, simplifying things greatly. Note that I reused a lot of Jarrod's code... ...

presque 14 ans il y a | 0

Réponse apportée
how to convert grey-code to binary code & vice-versa?
B = sort(A)

presque 14 ans il y a | 1

| A accepté

Réponse apportée
What does monotically increasing means?
Monotonically increasing means that each value is larger than the previous value. Yes = [1 2 3 4 5 6] No = [1 1 3 4 ...

presque 14 ans il y a | 0

Réponse apportée
Writing separate variables into 1 variable in workspace
Your question is very confusing. I think you mean something like this: % These are the given arrays. A = 1:10; B = 1...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
What does this matlab statement mean?
The FIGURE command creates a new MATLAB figure, and the [] is passing an empty argument to the second input of the IMSHOW functi...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Reverse an array by for loop
An in-place FOR loop would look like: a = 1:10; L = length(a); for ii = 1:L/2 T = a(L-ii+1); a(L-ii+...

presque 14 ans il y a | 0

Réponse apportée
Replace NaNs with previous values
Johannes, notice that your solution will fail if the first value in a column is nan. Rather than looking for a vectorized solut...

presque 14 ans il y a | 4

Réponse apportée
Evaluating a cell array of function handles
Exactly as you have made it, C{1} is a function that takes no input arguments. Try this instead: C{1} = matlabFunction(T...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
How can I get estimated coordinates after performing transformation?
Have you looked at <http://www.mathworks.com/help/images/ref/tformfwd.html TFORMFWD>?

presque 14 ans il y a | 0

Réponse apportée
deleting entries across all fields of a structure
An example: % Create a structure with multiple fields. S.a = rand(1,100); S.b = rand(1,100); S.c = rand(1,100); ...

presque 14 ans il y a | 2

| A accepté

Charger plus