Réponse apportée
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 ...

presque 11 ans il y a | 0

Réponse apportée
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 ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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? ...

presque 11 ans il y a | 0

Réponse apportée
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')

presque 11 ans il y a | 0

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

Réponse apportée
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...

presque 11 ans il y a | 4

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 2

| A accepté

Réponse apportée
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:...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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. ...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 2

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 2

Réponse apportée
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...

presque 11 ans il y a | 0

Réponse apportée
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 ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

Réponse apportée
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];...

presque 11 ans il y a | 5

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

| A accepté

Charger plus