답변 있음
Matlab 2014b: figure() dbstops
It sounds like you have some code which depends on the fact that handles to graphics objects were implemented as doubles in earl...

11년 초과 전 | 0

게시됨


Bézier Curves
Bézier Curves and Kronecker's Tensor ProductLast time we talked about Martin Newell's famous teapot. Today we're going to...

11년 초과 전

Thumbnail

답변 있음
How to move a circle on a sine curve?
Actually the Y component is changing. But it's only changing in the range -1 to 1. Your YLim goes from something like -80 to 80,...

11년 초과 전 | 1

| 수락됨

답변 있음
text out on axes
Yes, text has a 'Units' property. If you set this to one of the "screen space" units (I just made that term up), then it is rela...

11년 초과 전 | 0

| 수락됨

답변 있음
colourful image labeling by using plot function to generate a scatter plot
I'm not quite sure I follow, but if your CData array looks like: [1, 1, 2, 2, 3, 3, ...] then every pair of markers will...

11년 초과 전 | 0

답변 있음
Mesh plot with only every nth line plotted?
There isn't a nice automatic way to do it, but it's not too hard. You need 3 surfaces. One for the white background, one for the...

11년 초과 전 | 0

| 수락됨

답변 있음
colourful image labeling by using plot function to generate a scatter plot
The scatter command lets you assign a color to each marker using the CData property: h = scatter(r1,r2,'or') set(h,'CDat...

11년 초과 전 | 0

답변 있음
Canonical method for setting graphics properties in MATLAB 2014b?
If you're writing code which only needs to run in R2014b or later, then the first form (aka "dot notation") is preferred. There ...

11년 초과 전 | 1

| 수락됨

답변 있음
Please help I need to rotate a rectangle
In R2014b, you can parent a rectangle object to an hgtransform object and apply a rotation: g = hgtransform r = rectangl...

11년 초과 전 | 2

답변 있음
Line smoothing in MATLAB2014b
I'm planning to do a post on this soon on our <http://blogs.mathworks.com/graphics/ new graphics blog>. The subject's a bit comp...

11년 초과 전 | 1

답변 있음
Triangulated Surface Mesh Simplification
Try the <http://www.mathworks.com/help/matlab/ref/reducepatch.html reducepatch command> .

11년 초과 전 | 0

| 수락됨

답변 있음
who can create a surf y=0 in a defined domain?
The 3rd arg to surf needs to be 2D. That's optional for the other two. You can use meshgrid to expand your 1D arrays out to 2D l...

11년 초과 전 | 0

| 수락됨

게시됨


Welcome. Can you stay for tea?
Welcome to our new blog. My name is Mike Garrity, and I work in the group which develops MATLAB's graphics system. In...

11년 초과 전

Thumbnail

답변 있음
Get a plot to automatically load different colors using a matrix
I think your advisor is just referring to the fact that if you give plot a YData array which is an MxN array, then it will plot ...

11년 초과 전 | 0

| 수락됨

답변 있음
How to Plot a 3D Ecuation
It might not seem obvious, but the function is isosurface. You've got a function defined in a 3D space and you're looking for th...

11년 초과 전 | 1

답변 있음
How can i plot a square to my graphs maximum value?
Given a plot you've created using something like this: h = plot(data); Consider this: y = get(h,'YData'); i = fi...

11년 초과 전 | 0

답변 있음
bar plot loses edge colour
That's the default behavior when the amount of data gets too large. The thinking was that all of those black lines would clutter...

11년 초과 전 | 1

| 수락됨

답변 있음
How to add and arrange a text in a plot using commands?
It's hiding in the annotation command. h = annotation('textbox') After you've created it, you can use the set command to...

11년 초과 전 | 0

| 수락됨

답변 있음
How to scale a 3D meshed model plot to a certain size?
Another technique you should know about (although it might be overkill for this purpose) is hgtransform. This creates an object ...

11년 초과 전 | 0

답변 있음
A strange phenomenon for the function surf
The surf command normally does a "view(3)". But when NextPlot is set to add, it doesn't because it thinks you've already got the...

11년 초과 전 | 0

| 수락됨

답변 있음
Changing colorscale increments on a surface plot
I'm afraid that the colormap is always applied as a linear function of the CData. Changing the ticks on the colorbar doesn't cha...

11년 초과 전 | 1

| 수락됨

답변 있음
Limit number of colormap points in a trisurf
Check your renderer. get(gcf,'Renderer') If it's OpenGL, then you've probably hit a bug in how interpolated color works...

11년 초과 전 | 0

| 수락됨

답변 있음
Problem creating axes with subplot
One of the features of subplot is that when it creates a new axes it deletes any old ones which the new one would overlap. If yo...

11년 초과 전 | 0

답변 있음
Transparency tube section like alpha function
What that's saying is that the size of your AlphaData array isn't the same as the size of your ZData array. They need to match s...

11년 초과 전 | 0

답변 있음
Surface area of a plane within a cube
> Do you think I could adapt this code to work in 3D? Sure, basically you just change the function Intersection so that it ta...

11년 초과 전 | 0

답변 있음
Surface area of a plane within a cube
I don't have a code fragment handy, but a simple way to do this is with the Sutherland-Hodgman clipping algorithm. <http://e...

11년 초과 전 | 0

| 수락됨

답변 있음
Transparency tube section like alpha function
Assuming you're using surf, perhaps like something this: [a,b]=meshgrid(linspace(0,pi/2,25),linspace(0,2*pi,40)); r1=2; ...

11년 초과 전 | 0

답변 있음
contour plot for different values
What you're doing looks fine, but I don't know what val1 and val2 were. If I do this: contour(X,Y,mvd,[.04e-3, .12e-3]) ...

11년 초과 전 | 0

답변 있음
Rotating a 3D image?
The simplest way is actually to texture map it onto a flat surface: img=imread('street1.jpg'); surf(0:1,0:1,zeros(2),img...

11년 초과 전 | 0

| 수락됨

답변 있음
What is the relation between non-integer index and RGB values?
For an indexed image, the RGB values aren't actually in the MAT file. They're in the colormap of your figure. The colormap comma...

11년 초과 전 | 0

| 수락됨

더 보기