已回答
Matlab does not save the entire figure
I recommend using <https://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig |export_fig|> instead of |print|. It's ...

8 years 前 | 0

已回答
How to filter out x-y coordinates and data from a plot, covering exactly the boundary of some region?
To find points in a polygon use |inpolygon|, just as I suggested in the other post. If you're using Mouginot's annual velocity d...

8 years 前 | 0

| 已接受

已回答
How do i make a line of datapoints between 2 points on map, and use their index for later.
There's an example of how to calculate the flux of Thwaites Glacier in Antarctica in the documentation for measures_interp <http...

8 years 前 | 0

已回答
How to correct the alignment of quiver on a plot?
That looks like Amery Ice Shelf appearing as tiny red arrows in the middle of the eastern Ross Sea. Comparing its shape to the t...

8 years 前 | 0

| 已接受

已回答
Problems with m_proj for specific area of the world
Can you do it with <https://www.mathworks.com/matlabcentral/fileexchange/47638-antarctic-mapping-tools Antarctic Mapping Tools>?...

8 years 前 | 0

| 已接受

已回答
Create 3D scatter plot from an 120x160 matrix
Perhaps you need to columnate all your variables using (:). Like this: [x,y,z] = peaks(150); scatter3(x(:),y(:),z(:),...

8 years 前 | 0

已回答
How to plot matrix points with label
Plot the points with the |plot| function like this. Here I'm making them red x marks by specifying |'rx'|: plot(Z(:,1),Z(:...

8 years 前 | 1

| 已接受

已回答
a problem with the function ncpolarm
I think the simplest solution, which is also probably the least prone to errors, is to use <https://www.mathworks.com/matlabcent...

8 years 前 | 1

已回答
how could i plot a carte for the arctic region surface temperature (including all coasts) if i have latitudes , longitiudes and temperature data ?
You can use <https://www.mathworks.com/matlabcentral/fileexchange/63324 Arctic Mapping Tools>.

8 years 前 | 0

| 已接受

已回答
How can I create animated GIF images in MATLAB?
Or, for a much simpler option, use the gif function on File Exchange.

8 years 前 | 19

已回答
how to find the odd numbers i need?
Solve it by hand and then the Matlab part should be easy.

8 years 前 | 0

已回答
How can I create a graduate colour map in Matlab using the Mapping Toolbox?
Hi Marina, You may have solved the issue by now, but I've just uploaded a function to File Exchange called <https://www.math...

8 years 前 | 0

| 已接受

提问


Can a clabel be saved?
I'm plotting some contour lines and labeling them manually like this: [C,h] = contour(peaks); cl = clabel(C,h,'manual')...

8 years 前 | 1 个回答 | 0

1

个回答

已回答
multiplying two cells array
I think you're looking for <https://www.mathworks.com/help/matlab/ref/cellfun.html |cellfun|>.

8 years 前 | 0

已回答
How do I plot the nearest neighbour algorithm in a matrix?
How about <https://www.mathworks.com/help/images/ref/bwlabel.html |bwlabel|>? Then you can use |imagesc| to display the matrix ...

8 years 前 | 0

已回答
How to read the X,Y and Z coordinates from a TIFF image extracted into Matlab?
Here are the x and y coordinates of a geotiff: I = geotiffinfo(filename); [x,y]=pixcenters(I); 2022 Update - The function pi...

8 years 前 | 1

| 已接受

已回答
How to Keep a Character in A Fixed Position?
Try this: A = 1; sprintf('% 8d',A) B = 1234567; sprintf('% 8d',B)

8 years 前 | 0

已回答
code to choose an image from a folder
Try I = imread(selectedFile); imshow(I)

8 years 前 | 0

| 已接受

已回答
Wave effect over an image in matlab
If you have this color image as your background: I = imread('greens.jpg'); imshow(I) <</matlabcentral/answers/uploa...

8 years 前 | 1

已回答
Why is only one tick mark displayed when using datetick?
That's because datetick is a bit clunky, and it can't get a lock on a date that it thinks is worthy of displaying. Probably bec...

8 years 前 | 1

| 已接受

已回答
Flip image from one side to another
It's not entirely clear what you're asking, but try |flipdim| to flip an image; use |horzcat| to join two images. Here's an exa...

8 years 前 | 7

已回答
Using map2mat for eof analysis!
Hi Sophia, Be careful, because |map2mat| assumes the _first_ dimension is time. For normal climate data (lon*lat*time or la...

8 years 前 | 0

已回答
How to Change Values of a Field by an Indexing Array?
You could change each element individually via loop. But make sure you add 1 to the indexing array values because Matlab starts...

8 years 前 | 1

| 已接受

已回答
How can I store the output data from a for loop
Try this: pwf=[0 500 1000 1500 2000 2500 ]; for k = 1:length(pwf) flow(k)=qmax*(1-0.2*(pwf(k)/r)-0.8*(pwf...

8 years 前 | 0

| 已接受

已回答
Strange 3x3 Lowpass filter
It looks like a pretty straightforward 3x3 averaging filter. The catch is you have to start with (i=2,j=2) so i+(-1) will be 1 ...

8 years 前 | 1

| 已接受

已回答
Specify file path problem
On my Mac it's |Users| (plural), not |User|. Is that the issue?

8 years 前 | 0

| 已接受

已回答
Is there a smarter way to plot this polygon series?
If you have five datasets: for k = 1:5 data = load(['dataset',num2str(k),'.txt']); plot(data(:,1),data(:,2),'...

8 years 前 | 0

| 已接受

已回答
how to combine strfind and index in one line?
You could use |regexp| with the |'once'| option. For example, for this string: str = ['Soldiers! Don''t give yourselv...

8 years 前 | 1

已回答
Using scatterm to plot points on Globe Projection of world map (spherical)
You pose the question well. I was able to replicate the problem. Here's a fix: mstruct = gcm; [x,y,z] = mfwdtran(mstru...

8 years 前 | 0

| 已接受

已回答
Write a MATLAB function that accepts as input a set of {
function myfunction(varargin) %MYFUNCTION accepts as input a set of { end

8 years 前 | 0

加载更多