Answered
3D Convex hull projection on 2D planes
Something like this? %% x=[10 10 40 60 60 60]; y=[0 10 40 30 10 0]; z=[10 13 40 60 57 50]; tri = delaunay(x,y);...

10 years ago | 0

| accepted

Answered
Struggling with legend on grouped bar charts (Matlab)
If you use legend show instead of passing in the two names, you'll see what's going on here. In that case you'll get si...

10 years ago | 0

| accepted

Published


Object Creation Performance
Object Creation PerformanceBack in January, we looked at the performance of creating a graphics object with a lot of data....

10 years ago

Thumbnail

Answered
How to rotate a quiver object in matlab
The rotate command actually modifies the data of the graphics object, and it doesn't know how to modify all of the different typ...

10 years ago | 2

| accepted

Answered
Smooth contours in simple 2D matrix
Contour won't you control the interpolation, but you can do it yourself. You basically need to follow this example I posted on t...

10 years ago | 0

Answered
How can I use an interpreter (like LaTeX) when setting axis markers?
I assume that by "marker" you mean "ticklabel"? If so, it is separate from the interpreter which is used for titles and labels. ...

10 years ago | 11

| accepted

Answered
setting ColorOrderIndex before 1st line is drawn?
If hold is on, then plot resets the ColorOrderIndex. If you just add hold on before your call to plot, then it should d...

11 years ago | 1

Answered
How can I get a 3D rotation matrix
If you look at the command <http://www.mathworks.com/help/matlab/ref/makehgtform.html makehgtform> , you'll find a form that loo...

11 years ago | 1

| accepted

Answered
How do I make round 'o' markers render as round when saving to png
That looks like an issue that the OpenGL driver has on some graphics cards when drawing wide lines. If so, you have a couple of ...

11 years ago | 1

| accepted

Answered
Plot the numbers of a matrix as points (dots) in a plot
Here's a really simple, but inelegant solution: %% A=[1 0 5 7; 3 0 8 4; 6 4 5 2] %% cla axis ij hold on ...

11 years ago | 0

| accepted

Answered
Cannot plot additional scatter points in a boxplot
I think it's just that boxplot leaves the YLim in manual mode. Try this: ylim auto

11 years ago | 1

| accepted

Answered
Layering SortMethod for 3D Plotting
One option to consider is to place your feature points in a separate axes. The contents of different axes are drawn with childor...

11 years ago | 2

| accepted

Answered
Why is MATLAB 2015A placing the text box in the wrong location?
If you mean the text object with the string 'CLASS', then I think that it's the order of the Position and Units properties on yo...

11 years ago | 1

| accepted

Answered
2-D Contour plot for non-uniformly spaced data points
The contour commands can handle curvilinear grids, but not multi-resolution grids. So I could do this: [theta,rad] = meshgr...

11 years ago | 0

Answered
Blurry Text and Lines in Graph
Those are new features that were introduced in R2014b. There are properties for controlling them: <http://www.mathworks.com/e...

11 years ago | 0

| accepted

Answered
How could I a draw circle on a 2D surface in 3D?
No, you probably don't want to try and force it into a quad mesh. If you look at your triangle mesh: set(p,'EdgeColor','whi...

11 years ago | 0

Answered
How can I plot 3D scattared data on a triangulated 3D body
I don't have a good, ready to use example, but I can explain the basic idea. You have a triangle mesh. What you probably want...

11 years ago | 0

| accepted

Answered
surf and color bar does not show correct color gradient.
What's happening here is that you have FaceColor='flat'. In this case, it's using your 10x10 matrix as the Z values of the verti...

11 years ago | 2

| accepted

Answered
How can I obtain opaque patch in a subplot with a mesh command in another subplot?
You're seeing the edges of the red circles poke through the green circle, aren't you? This isn't actually caused by alpha. He...

11 years ago | 0

| accepted

Published


Patch Work
Patch WorkBack before the internet, programmers collected xeroxed copies of old notes and papers. We traded these with our...

11 years ago

Thumbnail

Answered
I want to use ezpolar with line colour, style, width control. Is this possible?
The ezpolar command has a return argument. This is a handle to the graphics object it creates. You can set properties on that: ...

11 years ago | 0

| accepted

Answered
Creating a surface plot using Simulink?
There are a few different approaches to this. I described one <http://blogs.mathworks.com/graphics/2014/10/21/double_pendulum/ ...

11 years ago | 0

Answered
GUI developed in Matalb 2013b behaving weirdly in Matlab 2015a
My guess would be that you have handles to graphics objects in your workspace when you save the MAT file. Consider the following...

11 years ago | 2

Answered
How to split a contourf plot into two sections with different zooms
The only builtin non-linear scale is log, but you can roll your own. Here's a simple example: %% Start with peaks [x,y,z...

11 years ago | 1

| accepted

Published


State Taxes
If you live in the US, you probably filed your taxes sometime in the last couple of months. If you're like me, that got you...

11 years ago

Thumbnail

Answered
Linkaxes much slower in 2015a
This is an interesting case. There's a lot of stuff going on here. I'm always looking for good performance cases for <http://blo...

11 years ago | 3

| accepted

Answered
Annotation with angled arrow
They are supported, but the default interpreter for annotations is tex. You'll need to set it to latex to get what you want: ...

11 years ago | 0

| accepted

Answered
How to insert LaTeX equation into static text/plot in GUI?
These three commands: text(x,y,mystr) annotation('textbox','String',mystr) uicontrol('Style','text','String',mystr) ...

11 years ago | 2

| accepted

Answered
How to create simple shapes in Matlab and save them as bitmap images.
Maybe this will be enough to get you started: %% Create Objects figure('Position',[100 100 512 512],'Color','white') ...

11 years ago | 0

Answered
How to place a marker on a 3D surface plot
Consider the following example: [x,y,z] = peaks; surf(x,y,z) hold on [~,i] = max(z(:)); h = scatter3(x(i),y(i),...

11 years ago | 4

| accepted

Load more