Answered
How to overlay pcolour figures?
Alternatively, assuming each dataset holds a zero wherever the plume is not, and the plume regions themselves don't overlap too ...

10 years ago | 0

Answered
How to move a contourf plot created on a second axes on the baclground
|uistack| works for axes. uistack(ax2, 'bottom'); Although in your particular example, you'd have to eliminate the axis ...

10 years ago | 0

| accepted

Answered
How to do clock-wise increasing polar plot in matlab?
I recommend using <http://www.mathworks.com/matlabcentral/fileexchange/38855-comprehensive-polar-plots mmpolar>; it's far more f...

10 years ago | 0

| accepted

Answered
Multiple colormap not working when using COLORMAP(AX,...)
Prior to R2014b, colormaps could only be applied to a figure as a whole, not to individual axes. There are a few workarounds, s...

10 years ago | 0

| accepted

Answered
How can I get a legend that identifies ALL series shown on a group of plots?
To do this, save the handles of the lines you want labeled and pass these to the |legend| command. They don't have to all share...

10 years ago | 0

| accepted

Answered
How to accelerate the ode45 solver?
If I understand your code correctly, the |U1| function is simply interpolating the |uu1| vector to the appropriate time, right? ...

10 years ago | 0

Answered
Is it possible to force xtick to be visible everywhere?
To layer all axes components (ticks, gridlines) above plotted stuff, use set(gca, 'Layer', 'Top')

10 years ago | 0

Answered
How to skip rows when loading data from a netcdf file
Take a look at the start, count, and stride inputs that are associated with most |netcdf| methods, including |getVar|. For exam...

10 years ago | 0

| accepted

Answered
Make a tensor with nc images?
How were the .mat files generated? Version 7.3 .mat files (created using the |-v7.3| argument with |save|) are technically hdf5...

10 years ago | 0

Answered
Trouble getting plots to show in published PDF
The |publish| function requires your code to be properly marked up in order to render it in the way I think you want it. By def...

10 years ago | 4

| accepted

Answered
Create multiple column vectors by entering a matrix?
data = [1 2 3; 1 2 3; 1 2 3]; data = num2cell(data,1); [x,y,z] = deal(data{:}) It would be nice if we could somehow c...

10 years ago | 0

| accepted

Answered
gname for labelling lines in a plot
Maybe setting the ButtonDownFcn of each line to display the name somewhere would work? In this example, I change the axis title...

10 years ago | 0

| accepted

Answered
Display the sizes of 4D arrays?
I wrote the following little function as a slightly altered version of |whos|. It lists all dimensions, and also converts the B...

10 years ago | 2

| accepted

Answered
single "x-axis graph axis numbers code" to work multi plots
If you save the handles of your subplots, you can apply the function to all axes, either in a loop or via |arrayfun| afterwards:...

10 years ago | 1

| accepted

Answered
How can I create a correct lambertian colormap from my data with map_m package?
"lambertian" is a fun new word... :-) What you're seeing is just the block outline of all the grid cells; by default, all Mat...

10 years ago | 0

| accepted

Answered
CELL2MAT error in version 2015a
I've run into the same problem in many places with arrays of graphics handles... multidimensional arrays are perfectly fine, but...

10 years ago | 0

| accepted

Answered
How streamline a series of subplots... Basic for loop to plot figure with incrementing numbers in variable names.
A few suggestions... First, don't store your data in arrays with numbered names. Instead, use array indices or cell arrays. ...

10 years ago | 1

| accepted

Answered
scatter plot and definition of contour levels in z coordinate
An alternative to gridding your data would be to use one of the <http://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9...

10 years ago | 2

Answered
How to get rid of the for loop ?
Maybe this? tmp = cell(2,length(Kanal_name)); tmp(1,:) = Kanal_name; [tmp{2,:}] = deal(zeros(1,2001)); handles...

10 years ago | 0

| accepted

Answered
Computing mean by group (need help with speed!)
This example uses my <http://www.mathworks.com/matlabcentral/fileexchange/42577-aggregate aggregate> function. It's basically a...

10 years ago | 2

Answered
could "cellfun" solve my problem?
You just need to convert your numeric data from cell arrays to a numeric arrays: fb = cell2mat(linedata(:,1)); tb = cel...

10 years ago | 0

Answered
How do I display current speed and directional data with time on a feather plot?
The problem is likely that you're viewing it with an unequal data aspect ratio... your speeds are so small compared to the unit ...

10 years ago | 0

| accepted

Answered
Need ideas to fill in missing grid points
This function might help you: <https://github.com/kakearney/colinear-pkg colinear>. I wrote it for exactly the same problem you...

10 years ago | 0

Answered
custom colors in plot (without loop)
Another option is to set the color after plotting via the cell array |set| syntax: c = [... 1 0 0 0 1 0 0 0 1];...

10 years ago | 5

| accepted

Answered
programming to find out all possible combination of numbers a,b,c,d in which 0<a<b<c<d<90.
For just the integers: tmp = nchoosek(1:89,4); a = tmp(:,1); b = tmp(:,2); c = tmp(:,3); d = tmp(:,4); The |nchoo...

10 years ago | 0

Answered
plotyy scaling issue...
Looks correct to me... You're getting two sets of bars. You can change the bar properties to see that more clearly. [ax, h...

10 years ago | 0

| accepted

Answered
How to intersect a matrix with a set and keep the rows of the matrix?
If you only want to get the min and max of each row, and really want to avoid for loops, here's a solution. This gives the min ...

10 years ago | 0

| accepted

Answered
Unable to get similar contour using the gridfit
Gridfit isn't really appropriate for extrapolation, and if you use it for that you often get surfaces that increase/decrease sha...

10 years ago | 1

| accepted

Answered
Combining Map with Surface Plot
All the map plotting functions plot to the current axis, regardless of whether it's a subplot or not. So to plot to specific on...

10 years ago | 1

| accepted

Answered
To plot contour for an array : x,y,mass value having repeated values
Is |xyz| a set of scattered 2D points and their corresponding z-data? If so, the crazy diagonal matrix you're building is not w...

10 years ago | 0

| accepted

Load more