Answered

How to set YTickLabel in double y-axis plot?

Or in R2016a: ax(1).YAxis.TickLabelFormat = '%.2f';

How to set YTickLabel in double y-axis plot?

Or in R2016a: ax(1).YAxis.TickLabelFormat = '%.2f';

ungefär 5 år ago | 0

Answered

To create Polar Shaded plot

If you don't see a polar plot which does what you want, you can use the <http://www.mathworks.com/help/matlab/ref/pol2cart.html ...

To create Polar Shaded plot

If you don't see a polar plot which does what you want, you can use the <http://www.mathworks.com/help/matlab/ref/pol2cart.html ...

ungefär 5 år ago | 0

| accepted

Answered

App Designer UIAxes doesn't show results of fitting curve

UIAxes has a number of limitations in this first release. From the error message, I would guess that either app.x or app.y is a ...

App Designer UIAxes doesn't show results of fitting curve

UIAxes has a number of limitations in this first release. From the error message, I would guess that either app.x or app.y is a ...

ungefär 5 år ago | 1

| accepted

Answered

How do I create a 3D histogram for; x = 1*26, y=1*28, z = 26*28 ?

If you're using R2015b or later, you can use the new <http://www.mathworks.com/help/matlab/ref/histogram2.html histogram2 functi...

How do I create a 3D histogram for; x = 1*26, y=1*28, z = 26*28 ?

If you're using R2015b or later, you can use the new <http://www.mathworks.com/help/matlab/ref/histogram2.html histogram2 functi...

ungefär 5 år ago | 0

Answered

How can I fill the area between a function and the vertical axis x = 0, either for positive or negative values of it?

<http://blogs.mathworks.com/graphics/2015/10/13/fill-between/ This post I did on the MATLAB Graphics blog> might give you some i...

How can I fill the area between a function and the vertical axis x = 0, either for positive or negative values of it?

<http://blogs.mathworks.com/graphics/2015/10/13/fill-between/ This post I did on the MATLAB Graphics blog> might give you some i...

ungefär 5 år ago | 1

| accepted

Answered

What function other than colormap can display an image as a texture-mapped surface?

In this example, you don't need colormaps at all. Just use the RGB images as the textures. for n = 1:numberOfPlanets ...

What function other than colormap can display an image as a texture-mapped surface?

In this example, you don't need colormaps at all. Just use the RGB images as the textures. for n = 1:numberOfPlanets ...

ungefär 5 år ago | 2

| accepted

Answered

getting RGB from image created with imagesc

You probably want <http://www.mathworks.com/help/matlab/ref/ind2rgb.html ind2rgb>. But if you're using imagesc, rather than imag...

getting RGB from image created with imagesc

You probably want <http://www.mathworks.com/help/matlab/ref/ind2rgb.html ind2rgb>. But if you're using imagesc, rather than imag...

ungefär 5 år ago | 1

| accepted

Answered

Figure problem: disappeared text and radio buttons in figure/questionnaire after changing fron 2012b to 2015b

Starting in R2014b, the parsing of the property/value pairs in the input arguments got pickier. Your code has lots of instances ...

Figure problem: disappeared text and radio buttons in figure/questionnaire after changing fron 2012b to 2015b

Starting in R2014b, the parsing of the property/value pairs in the input arguments got pickier. Your code has lots of instances ...

ungefär 5 år ago | 1

Answered

Setting EdgeColor in 2015B+ for graph.m

It wants an array with 3 columns, and one row for each edge. The columns are the red, green, and blue components of the color fo...

Setting EdgeColor in 2015B+ for graph.m

It wants an array with 3 columns, and one row for each edge. The columns are the red, green, and blue components of the color fo...

ungefär 5 år ago | 0

| accepted

Answered

No FaceAlpha property for area plot

FaceAlpha was added to area in R2015b. So if you upgrade to either that or R2016a, you can do this: area(rand(1,10),'FaceAl...

No FaceAlpha property for area plot

FaceAlpha was added to area in R2015b. So if you upgrade to either that or R2016a, you can do this: area(rand(1,10),'FaceAl...

ungefär 5 år ago | 1

Answered

I am getting the following error on using pcolor() fucntion:??? Error using ==> surface Value must be numeric Error in ==> pcolor at 76 hh = surface(x,y,zeros(size(c)),c,'parent',cax);

It's trying to say that it doesn't like the type 'logical'. That's what you got when you did this: A = (X.^2 + Y.^2) <= r^2...

I am getting the following error on using pcolor() fucntion:??? Error using ==> surface Value must be numeric Error in ==> pcolor at 76 hh = surface(x,y,zeros(size(c)),c,'parent',cax);

It's trying to say that it doesn't like the type 'logical'. That's what you got when you did this: A = (X.^2 + Y.^2) <= r^2...

ungefär 5 år ago | 0

| accepted

Answered

Efficient display of 2D images in 3D space?

I wouldn't think that going to a scatter plot would be a good approach here. What about something like this? img = imrea...

Efficient display of 2D images in 3D space?

I wouldn't think that going to a scatter plot would be a good approach here. What about something like this? img = imrea...

ungefär 5 år ago | 2

| accepted

Answered

How can I overlay pseudocolor images with different colormaps?

You actually have it exactly right, but the second call to imagesc reset the axes h2. This set the Visible property back to on. ...

How can I overlay pseudocolor images with different colormaps?

You actually have it exactly right, but the second call to imagesc reset the axes h2. This set the Visible property back to on. ...

ungefär 5 år ago | 0

| accepted

Submitted

Tie a Ribbon Round It (Parametric Curves Part 1)

Drawing parametric curves

ungefär 5 år ago | 1 download |

Submitted

Down the Tubes (Parametric Curves Part 2)

Drawing parametric curves

ungefär 5 år ago | 1 download |

Submitted

Implicit Surface Intersections

Drawing the intersection of 2 implicit surfaces

ungefär 5 år ago | 1 download |

Submitted

Homogeneous Coordinates

How homogeneous coordinates are used in computer graphics.

ungefär 5 år ago | 1 download |

Submitted

Type 15 Convex Pentagon

A recently discovered pentagon that tiles the 2D plane.

ungefär 5 år ago | 1 download |

Submitted

Tiling Quadrilaterals

How to tile the plane with an arbitrary quadrilateral.

ungefär 5 år ago | 1 download |

Submitted

Tiling Hexagons and Other Permutohedra

Permutohedra in 3D and 4D.

ungefär 5 år ago | 2 downloads |

Submitted

Polygon Interpolation

How the patch object interpolates colors.

ungefär 5 år ago | 1 download |

Answered

error using mouse scroll with zoom on

I think that bug's fixed in R2015b.

error using mouse scroll with zoom on

I think that bug's fixed in R2015b.

ungefär 5 år ago | 0

| accepted

Answered

What is the fastest way to update overlaid graphics in a video?

Actually, it sounds like you're probably up against this case: <http://blogs.mathworks.com/graphics/2014/11/26/pretriangulati...

What is the fastest way to update overlaid graphics in a video?

Actually, it sounds like you're probably up against this case: <http://blogs.mathworks.com/graphics/2014/11/26/pretriangulati...

ungefär 5 år ago | 0

| accepted

Answered

bilinear interpolation of 2D matrix

Here's one approach. Create an XY grid, but put nans in some of the Z values. [x,y] = meshgrid(linspace(-3,3,40)); z ...

bilinear interpolation of 2D matrix

Here's one approach. Create an XY grid, but put nans in some of the Z values. [x,y] = meshgrid(linspace(-3,3,40)); z ...

ungefär 5 år ago | 4

| accepted

Answered

What's the difference between hleg = legend(...) and [hleg, a, b, c] = legend(...)?

As Ced noted above, the four return arg form is deprecated and is only included for compatibility reasons. It is returning the o...

What's the difference between hleg = legend(...) and [hleg, a, b, c] = legend(...)?

As Ced noted above, the four return arg form is deprecated and is only included for compatibility reasons. It is returning the o...

ungefär 5 år ago | 0

Submitted

Making Things Move

Some techniques for getting good performance in 3D animations

ungefär 5 år ago | 1 download |

Submitted

Using MATLAB Graphics from Simulink

A technique for using MATLAB Graphics from a Simulink simulation.

ungefär 5 år ago | 1 download |

Answered

How can one remove axis ticks on imagesc but keep labels?

Have you tried setting the length of the ticks to 0? set(gca,'TickLength',[0 0])

How can one remove axis ticks on imagesc but keep labels?

Have you tried setting the length of the ticks to 0? set(gca,'TickLength',[0 0])

ungefär 5 år ago | 5

Answered

How to create 3D block graphic?

This should give you some ideas on where to start: w = 2; h = 5; d = 1/4; verts = [-w -h -d; ... w -h...

How to create 3D block graphic?

This should give you some ideas on where to start: w = 2; h = 5; d = 1/4; verts = [-w -h -d; ... w -h...

ungefär 5 år ago | 0

Answered

How to create a smoothed histogram and compute it's derivative magnitude in matlab

If you have the <http://www.mathworks.com/products/statistics/ statistics toolbox>, you might want to consider <http://www.mathw...

How to create a smoothed histogram and compute it's derivative magnitude in matlab

If you have the <http://www.mathworks.com/products/statistics/ statistics toolbox>, you might want to consider <http://www.mathw...

ungefär 5 år ago | 3