Answered

Creating 3d slice plot from various 2d dot plots

So you have something like this: npts = 120; for i=1:10 years(i,:) = randi(50,[1 npts]); windows(i,:) = randn(...

Creating 3d slice plot from various 2d dot plots

So you have something like this: npts = 120; for i=1:10 years(i,:) = randi(50,[1 npts]); windows(i,:) = randn(...

3 years ago | 0

Answered

Better data tip for Polar graph

The new <http://www.mathworks.com/help/matlab/ref/polarplot.html polarplot function> in R2016a does this for you. <</matlabc...

Better data tip for Polar graph

The new <http://www.mathworks.com/help/matlab/ref/polarplot.html polarplot function> in R2016a does this for you. <</matlabc...

3 years ago | 0

Answered

How to extract data point from a vector graphics by MATLAB?

The coordinates in the output file are not going to be the same as your data values. They can't be in some cases (e.g. YScale='l...

How to extract data point from a vector graphics by MATLAB?

The coordinates in the output file are not going to be the same as your data values. They can't be in some cases (e.g. YScale='l...

3 years ago | 0

Answered

Color a sphere surface/polar plot axis-wise

Something like this, perhaps? [x,y,z] = sphere(40); col(:,:,1) = abs(y); col(:,:,2) = abs(x); col(:,:,3) = abs(z);...

Color a sphere surface/polar plot axis-wise

Something like this, perhaps? [x,y,z] = sphere(40); col(:,:,1) = abs(y); col(:,:,2) = abs(x); col(:,:,3) = abs(z);...

3 years ago | 1

Answered

how to pause mesh command?

As I explained in <http://blogs.mathworks.com/graphics/2015/06/09/object-creation-performance/ this post on the MATLAB Graphics ...

how to pause mesh command?

As I explained in <http://blogs.mathworks.com/graphics/2015/06/09/object-creation-performance/ this post on the MATLAB Graphics ...

3 years ago | 0

Answered

How can I create 2D projections from a 3D object?

One approach is the technique I showed in answers to <http://www.mathworks.com/matlabcentral/answers/258711-how-to-i-surf-or-3d-...

How can I create 2D projections from a 3D object?

One approach is the technique I showed in answers to <http://www.mathworks.com/matlabcentral/answers/258711-how-to-i-surf-or-3d-...

3 years ago | 1

Answered

Bar graphs with two sets of different sizes

One simple way is this: none = length(one); ntwo = length(two); h = nan(max(none,ntwo),2); h(1:none,1)=one; h(1...

Bar graphs with two sets of different sizes

One simple way is this: none = length(one); ntwo = length(two); h = nan(max(none,ntwo),2); h(1:none,1)=one; h(1...

3 years ago | 0

| accepted

Answered

Cannot save opengl settings

I think that the "save" feature was added in R2014b. So you can't use it in R2014a. The simplest workaround would probably b...

Cannot save opengl settings

I think that the "save" feature was added in R2014b. So you can't use it in R2014a. The simplest workaround would probably b...

3 years ago | 0

Answered

Handling axes as arguments

Axes only returns an axes handle in the cases where it is creating an axes object. The syntax where you pass an axes handle in i...

Handling axes as arguments

Axes only returns an axes handle in the cases where it is creating an axes object. The syntax where you pass an axes handle in i...

3 years ago | 0

Answered

how to set default properties for annotations

The pattern is * 'Default' * The value of the object's Type property * The name of the property you want to set. So, if...

how to set default properties for annotations

The pattern is * 'Default' * The value of the object's Type property * The name of the property you want to set. So, if...

3 years ago | 1

| accepted

Answered

May I ask how to do elliptic curve in matlab? because I have no idea to start...

Elliptic curves are examples of implicit curves. I discussed how to plot implicit curves in <http://blogs.mathworks.com/graphics...

May I ask how to do elliptic curve in matlab? because I have no idea to start...

Elliptic curves are examples of implicit curves. I discussed how to plot implicit curves in <http://blogs.mathworks.com/graphics...

3 years ago | 0

| accepted

Answered

How can I plot y-z plane slices in a 3D volume?

You don't really need to build a full 3D array and then slice it. You can just place individual 2D slices in a 3D axes. [y,...

How can I plot y-z plane slices in a 3D volume?

You don't really need to build a full 3D array and then slice it. You can just place individual 2D slices in a 3D axes. [y,...

3 years ago | 2

| accepted

Answered

contourf with fixed colormap

Try uncommenting the call to caxis and moving it after the call to contourf. It needs to be after the call to contourf because t...

contourf with fixed colormap

Try uncommenting the call to caxis and moving it after the call to contourf. It needs to be after the call to contourf because t...

3 years ago | 0

Answered

Computer freezes SOMETIMES when plotting

If it only happens when you plot, then the first suspect would be the driver for the graphics card. I would look to see whether ...

Computer freezes SOMETIMES when plotting

If it only happens when you plot, then the first suspect would be the driver for the graphics card. I would look to see whether ...

3 years ago | 0

Answered

Getting particular scatter plots

Something like this perhaps: hs = scatter(randn(1,1000),randn(1,1000),'.'); hr = rectangle('Position',[.5 .5 .65 .5]); ...

Getting particular scatter plots

Something like this perhaps: hs = scatter(randn(1,1000),randn(1,1000),'.'); hr = rectangle('Position',[.5 .5 .65 .5]); ...

3 years ago | 0

Answered

How to convert a binary 3d matrix to mesh.

Yes, I would think that <http://www.mathworks.com/help/matlab/ref/isosurface.html isosurface> is the first thing to try. Just gi...

How to convert a binary 3d matrix to mesh.

Yes, I would think that <http://www.mathworks.com/help/matlab/ref/isosurface.html isosurface> is the first thing to try. Just gi...

4 years ago | 2

| accepted

Answered

How to change the stem line color

That looks like the graphics driver bug which was discussed in <http://www.mathworks.com/matlabcentral/answers/275146-plot-lines...

How to change the stem line color

That looks like the graphics driver bug which was discussed in <http://www.mathworks.com/matlabcentral/answers/275146-plot-lines...

4 years ago | 0

Answered

hObject, eventdata and handles not return double in R2016a

There was quite a bit of documentation on this as part of the R2014b release. <http://www.mathworks.com/help/matlab/graphics_tra...

hObject, eventdata and handles not return double in R2016a

There was quite a bit of documentation on this as part of the R2014b release. <http://www.mathworks.com/help/matlab/graphics_tra...

4 years ago | 0

Answered

How to plot a triangular shape function on a triangular domain?

I described one approach in <http://www.mathworks.com/matlabcentral/answers/165073-please-help-me-to-program-of-this-equation-of...

How to plot a triangular shape function on a triangular domain?

I described one approach in <http://www.mathworks.com/matlabcentral/answers/165073-please-help-me-to-program-of-this-equation-of...

4 years ago | 1

| accepted

Answered

how to plot a single valued function over a triangulated surface?

You can do it with patch. You'll just want to set FaceColor to interp and set the FaceVertexCData to to value of your function. ...

how to plot a single valued function over a triangulated surface?

You can do it with patch. You'll just want to set FaceColor to interp and set the FaceVertexCData to to value of your function. ...

4 years ago | 1

| accepted

Answered

Problem with plotting on log scale - disappearing line on plot...

I'm guessing that xplot and yplot are 2 element vectors where one of the values is 0. In that case, one of the 2 points on the l...

Problem with plotting on log scale - disappearing line on plot...

I'm guessing that xplot and yplot are 2 element vectors where one of the values is 0. In that case, one of the 2 points on the l...

4 years ago | 1

| accepted

Answered

2nd Y Axis problem - All works until I add the 2nd data set

I think that the problem is that the plot function resets a lot of the axes properties that you set when you created the 2nd axe...

2nd Y Axis problem - All works until I add the 2nd data set

I think that the problem is that the plot function resets a lot of the axes properties that you set when you created the 2nd axe...

4 years ago | 1

| accepted

Answered

matlab 2015 returns an empty graph

This code is creating 6,001 line objects which each have a single vertex. A line object with a single vertex is a degenerate cas...

matlab 2015 returns an empty graph

This code is creating 6,001 line objects which each have a single vertex. A line object with a single vertex is a degenerate cas...

4 years ago | 0

| accepted

Answered

3D plor plot

The <http://www.mathworks.com/help/matlab/ref/pol2cart.html pol2cart function> will convert this to 3D Cartesian, so it's easy t...

3D plor plot

The <http://www.mathworks.com/help/matlab/ref/pol2cart.html pol2cart function> will convert this to 3D Cartesian, so it's easy t...

4 years ago | 1

| accepted

Answered

Showing only part of markers that overflow off the edges of a plot?

No there isn't a simple way to do that type of clipping with markers. In fact, you wouldn't believe how much work we do to get m...

Showing only part of markers that overflow off the edges of a plot?

No there isn't a simple way to do that type of clipping with markers. In fact, you wouldn't believe how much work we do to get m...

4 years ago | 0

Answered

Draw stack order for yyaxis

I'm afraid that feature didn't make it into this initial release of yyaxis. As you've noted, the contents of the right side are ...

Draw stack order for yyaxis

I'm afraid that feature didn't make it into this initial release of yyaxis. As you've noted, the contents of the right side are ...

4 years ago | 0

Answered

Why is my default plot() showing up with gradient colors on the lines?

That looks a lot like <http://www.mathworks.com/matlabcentral/answers/275146-plot-lines-displaying-as-black-plus-gradient this i...

Why is my default plot() showing up with gradient colors on the lines?

That looks a lot like <http://www.mathworks.com/matlabcentral/answers/275146-plot-lines-displaying-as-black-plus-gradient this i...

4 years ago | 0

| accepted

Answered

Bad raphics performance on retina display (early 2015 13inch Macbook Pro)

I haven't benchmarked that particular machine, but whenever I do benchmark a graphics system, I start with the diagram I discuss...

Bad raphics performance on retina display (early 2015 13inch Macbook Pro)

I haven't benchmarked that particular machine, but whenever I do benchmark a graphics system, I start with the diagram I discuss...

4 years ago | 0

Answered

Displaying node name in a network graph

I think that it doesn't label them by default when the number of nodes gets bigger than some number. You can tell it that you re...

Displaying node name in a network graph

I think that it doesn't label them by default when the number of nodes gets bigger than some number. You can tell it that you re...

4 years ago | 1

| accepted

Answered

having an issue in App Designer clearing plots

Well, clf probably isn't what you want anyways. It's job is to remove everything from a figure, and it sounds like you have chec...

having an issue in App Designer clearing plots

Well, clf probably isn't what you want anyways. It's job is to remove everything from a figure, and it sounds like you have chec...

4 years ago | 5

| accepted