Respondida
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 ...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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? ...

más de 10 años hace | 0

Respondida
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')

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 4

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 2

| aceptada

Respondida
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:...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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. ...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 2

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 2

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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];...

más de 10 años hace | 5

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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 ...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Cargar más