已回答
Background of a scatter plot
Bran, you've provided lots of code, but we can't run it. If your question is specific to your code, make sure you provide code ...

9 years 前 | 0

已回答
How do i plot a scatter plot of wind speed and wind direction?
There's <http://www.mathworks.com/matlabcentral/fileexchange/49488 this solution> from File Exchange.

9 years 前 | 0

已回答
how do drape a two dimensional array over a map?
The |surfm| function plots z values as both color and vertical values. Perhaps you're looking for |pcolorm|, which can be used ...

9 years 前 | 0

已回答
How to save the output in a certain folder?
To save the variables x and y to a file called "myfile.mat" in a folder called "myfolder" try this: x = 1:360; y = sin...

9 years 前 | 8

| 已接受

已回答
Color Different Scatter Points Based on Group
Similar to Walter's solution: % define 25 random points: x = randn(25,1); y = randn(25,1); % Each x,y ...

9 years 前 | 3

已回答
TUTORIAL: how to ask a question (on Answers) and get a fast answer
Phrases like "doesn't work" and "didn't work" do not sufficiently describe a problem.

9 years 前 | 6

已回答
Drawing a verticle Line in a candle chart
Just enter the start and end points of the line and use |plot|. If you want the line to be at x = 5, and if you want the line t...

9 years 前 | 0

已回答
How to change data from cell to double
You can use <http://www.mathworks.com/help/matlab/ref/cell2mat.html |cell2mat|>.

9 years 前 | 0

已回答
How to edit a surf graph?
I'm not sure why |colormap| is in there--you can remove that line. Set the y axis limits like this: ylim([3000 8000])...

9 years 前 | 0

| 已接受

已回答
Ending a function after a time duration
Another option is simply pause(2) to wait two seconds.

9 years 前 | 0

已回答
Ending a function after a time duration
What about this? waitseconds = 2; % <-Enter number of seconds to wait. starttime = now; while now<starttime+wa...

9 years 前 | 0

已回答
Legend Entries for Contours
This is somewhat clunky, but you could convert the contour matrix to xyz data with <https://www.mathworks.com/matlabcentral/file...

9 years 前 | 0

已回答
How to fullfill segmented region by using region growing?
Are you looking for <http://www.mathworks.com/help/images/ref/imdilate.html |imdilate|>?

9 years 前 | 0

已回答
How can I convert .out into .mat?
I don't think .out is a format. I think it's just an extension. Can you open the .out files in a simple text editor like Notep...

9 years 前 | 0

已回答
Does NaN used in confusion matrix affects results?
Here's one way: C = nansum([A; B]) C = 5 7 7

9 years 前 | 0

| 已接受

已回答
downsampling an image without changing image content
If you have the Image Processing toolbox, check out <http://www.mathworks.com/help/images/ref/imresize.html |imresize|>. Here's...

9 years 前 | 0

已回答
How can I remove the seasonal signals from the monthly sea level data?
Another way to do it is to remove the means for each month. That is, figure out the average sea level for January and subtract ...

9 years 前 | 3

| 已接受

已回答
How can i make this loop start at theta= zero and evaluate the same equations for values increasing by two (e.i at 0,2,4,6 etc.)
Here's how you'd get |ax| and |ay|. First we define an array of values |theta| which go from 0 to 360 in steps of 2. Then we s...

9 years 前 | 1

| 已接受

已回答
How to slice through a 3d surface
Are you looking for a <http://www.mathworks.com/help/matlab/ref/slice.html |slice|> plot?

9 years 前 | 0

已回答
how to save each loop data
There are several ways to do this. One way is to make a counter, and increment that counter each time through the loop: p...

9 years 前 | 2

已回答
Plot envelope of a grassy plot
Do you have the Signal Processing toolbox? If so, the <http://www.mathworks.com/help/signal/ref/envelope.html |envelope|> funct...

9 years 前 | 0

已回答
How do I convert irregular lat/lon data from excel to a regular MATLAB grid for viewing as a contour plot?
Try using <http://www.mathworks.com/matlabcentral/fileexchange/8998-surface-fitting-using-gridfit |gridfit|>. However, a no...

9 years 前 | 0

已回答
how to compute min for image with black border?
What about min(img(img~=0)) That is, the minimum value of |img| values that are not zero.

9 years 前 | 1

| 已接受

已回答
How do I fill a rectangle (or circle) in a matrix?
If you have the Image Processing toolbox, K= [1 1 1 1 1 1 1 1 1 1 1 1 ...

9 years 前 | 0

已回答
How do I fill a rectangle (or circle) in a matrix?
Here's one way to fill the space between the top row of 10s and the bottom row of 10s: K= [1 1 1 1 1 ...

9 years 前 | 1

| 已接受

已回答
Assignment and accessing using indices
Try this: A = zeros(4); lin = sub2ind([4 4],2:3,2:3); A(lin) = 1;

9 years 前 | 0

已回答
How do I make a grey matrix, that contains a filled circle?
If you have the Image Processing toolbox you can use <http://www.mathworks.com/help/images/ref/strel-class.html |strel|>: ...

9 years 前 | 0

已回答
Eliminate a row where a column has repeated values
You can use the indices returned by |unique| to get the rows corresponding to unique values in column 18: M = randi(5,[3 2...

9 years 前 | 0

已回答
How can I plot boundary of India?
Another option is to use <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/content/borders/html/borders_documen...

9 years 前 | 0

已回答
how to plot india map with international boundary
You can use <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/content/borders/html/borders_documentation.html |...

9 years 前 | 0

加载更多