Réponse apportée
What is missing from MATLAB?
Use of wild cards and regular expressions with GET and SET. get(gca,'camera*') % Should return 8 properties

presque 15 ans il y a | 3

Réponse apportée
Easy way to set camera viewing axis normal to a plane
Run this to see. Look at the view of the plot that pops up, then press return to see the next view. Do this twice. plot3(0...

presque 15 ans il y a | 8

Réponse apportée
Bug regarding precedence of variables over functions sharing the same name?
I would call it a bug. All variables created in a <http://www.mathworks.com/help/techdoc/ref/script.html script> should exist i...

presque 15 ans il y a | 0

Réponse apportée
Need fast way to find folders using DIR command
What version are you using, because this works on 2007b: dir('C:\*.') % Note the . and * are transposed from yours.

presque 15 ans il y a | 0

Réponse apportée
Funny situations while helping others on MATLAB Answers
One of my favorites is when an asker accepts the first Answer given, then continues to ask for endless clarifications. I am rem...

presque 15 ans il y a | 2

Réponse apportée
[DISCONTINUED] Wish-list for MATLAB Answer sections.
NOT having my answers be listed oldest to newest. Having to trudge through 14 pages to see my recent answers is no fun... Pe...

presque 15 ans il y a | 2

Réponse apportée
unique rows with nan
This is because nan~=nan is always true. So one approach is to replace nan with some other value. A(isnan(A)) = inf; B = u...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Cartesian to polar sorting
As an example: % First some data to work with: thet = round(rand(1,10)*3) r = round(rand(1,10)*30) % Now match the la...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Adding values to a vector
It has to be done in a loop? You could put a nested loop in there and loop over r... % % *EDIT* Here is one way to do it....

presque 15 ans il y a | 0

| A accepté

Réponse apportée
What is the best way to create a persistant figure
figure L(1) = plot(1:10); hold on L(2) = plot((1:10).^2); Now if you want to erase L(1) later: delete(L(1)) Also...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Pattern matching problem
I would use STRFIND instead of REGEXP. list = 'SHC_RL_S1_0004_v1.59806163.avi SHC_RL_S2_0004_v1.59806163.avi RHA_RL_S3_000...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
function entering and plotimg
Here is another. function [] = plot_ex() % Help goes here. S.fh = figure('units','pixels',... 'position...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Problem with Cell Arrays in GUIDE
O.k., So now I will make another simple example. You tell me if we are finally on the same page ;-)! This example fills a 1-b...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Loops in Matlab + Multiple Plots
Use cell arrays. for jj=1:N Ic{jj} = abs(I(M+1:end,jj)); z{jj} = z(M+1:end,jj); figure plot(z{ii},Ic{ii}...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
matrix with logicals and doubles
No. Matrices cannot have mixed types. You could use a cell array, like: A = {true, 4;false, 5;true 9} or have a matrix whi...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How to Plot Multiple variables ?(not multi-plot)
As others have said, this kind of thing is the *_very reason_* why you should not make such variables using EVAL in the first pl...

presque 15 ans il y a | 0

Réponse apportée
Updating a Cell Array wit listbox and popupmenu options
Is it that you have 10 popupmenus and N listboxes, or one popumenu and one listbox? If you only have one of each, then shouldn'...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
How can I write the value of the array as an exponent in sprintf
Works here: plot(1:10) legend(sprintf('f(x) = %0.4g * x^%0.3g', .3, 3)) *EDIT* In response to comments. In that case: ...

presque 15 ans il y a | 4

| A accepté

Réponse apportée
strfind when I have more than one row
You have a couple of choices with STRFIND. You could loop over the rows, or pad the array with NANs (or other irrelevant value)...

presque 15 ans il y a | 1

Réponse apportée
Accessing data from Radio Buttons
I don't know why that would be so. Here is an example. Choosing a radiobutton prints the selected state to the command window....

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Desktop layout
O.k., I will take the counter-point to Sean de's response: Ewwww dockage! I use only the command window and command history, a...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Pop Up Menu Indexs
I think you mean the 'value' property. It starts at 1.

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Matching two texts
A = 'First Boston Corp Lehman Brothers '; B = 'Lehman Brothers Merill Lynch'; Am = regexp(A,'\s','split'); Am = Am(isme...

presque 15 ans il y a | 0

Réponse apportée
Find in Array of Strings
Is your array a cell array or a character array? If it is a cell array, A = {'asf' 'poif' 'STG' 'iam' ...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
saving variables contained within a function
Have you looked into the -append option of <http://www.mathworks.com/help/techdoc/ref/save.html SAVE>?

presque 15 ans il y a | 0

Réponse apportée
fitting data with power function
If I use this data and plot as you show, it looks near linear. Why would you think this should be a power law relation? x=[-...

presque 15 ans il y a | 0

Réponse apportée
Graphing a system of equations on the same set of axes
x = -10:.1:10; y1 =(-2/3)*x + 4/3; y2 = -(x.^2)/3 + 3; y3 = 2*x +9; plot(x,y1,'b',x,y2,'r',x,y3,'k')

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Error using ==> mpower At least one operand must be scalar in mod operation
There is more going on here than you say, because the code you pasted could not possibly have that error. The variable 'r' is a...

presque 15 ans il y a | 0

Réponse apportée
filling a internal value of a matrix
This function will help you: <http://www.mathworks.com/matlabcentral/fileexchange/23998-findsubmat FINDSUBMAT>. Here is an exa...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
sortrows
sortrows(I,-1)

presque 15 ans il y a | 0

| A accepté

Charger plus