Publié le


Signed Distance Fields
Recently I heard from a MATLAB user who was trying to draw tubes along a curve using this blog post I wrote a while back....

presque 9 ans il y a

Thumbnail

A soumis


Making Things Move
Some techniques for getting good performance in 3D animations

presque 9 ans il y a | 4 téléchargements |

A soumis


Using MATLAB Graphics from Simulink
A technique for using MATLAB Graphics from a Simulink simulation.

presque 9 ans il y a | 1 téléchargement |

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

presque 9 ans il y a | 6

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

presque 9 ans il y a | 0

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

presque 9 ans il y a | 3

Réponse apportée
How to plot section of a vector with a condition
I'm not clear on whether you want to connect across the skipped points, or leave them out. Here's an example that illustrates bo...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How can I calculate the pixel position in a figure-windows of a 3D object in perspective projection?
I'm afraid that it's rather more complex than just getting the view matrix. Let's walk through an example in detail. I'll as...

presque 9 ans il y a | 2

| A accepté

Réponse apportée
How to show different views on different axes ?
The simplest is to just create 4 copies of the scene you've made: set(gcf,'Renderer','zbuffer'); load mri.mat; K = s...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Volume of 3D polyhedron
One option you might look at is <http://www.mathworks.com/help/matlab/ref/alphashape.html alphaShape>. It's similar to convhull,...

presque 9 ans il y a | 4

| A accepté

Publié le


On the Grid
One type of question that I'm often asked is about how to use various visualization techniques with what is sometimes called...

presque 9 ans il y a

Thumbnail

Réponse apportée
Question about speeding up line plotting
I did <http://blogs.mathworks.com/graphics/2015/06/09/object-creation-performance/ a post on the MATLAB Graphics> blog a while b...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
I want to use unicode transportation symbols on plots.
The syntax is pretty simple. You'll want to use the UTF-16 form, which looks like this: text(.5,.5,['Rocket = ', hex2dec('d...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How can I realize a surface between two circles plotted in 3D that not have the same centre?
There isn't a built-in for this. There's <http://www.mathworks.com/matlabcentral/fileexchange/21951-cone/content//Cone.m one on ...

presque 9 ans il y a | 3

| A accepté

Réponse apportée
Line through polygon using patch
Patch wants to draw closed polygons. If you don't want the line from the end of the second patch back to the beginning, then the...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
In older versions of Matlab (2014a) when I created multiple plots they appeared one after the other allowing them to be verified briefly before the next appeared. With the new graphics engine (2015a) this is no longer the case, can I get this back?
Add some calls to <http://www.mathworks.com/help/matlab/ref/drawnow.html drawnow>. Before 2014b, there were a lot of cases where...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How to plot discontinuities with scatteredInterpolant in 3D?
If you have some way of identifying which side of the discontinuity a location is on, then I would set up two scatteredinterpola...

presque 9 ans il y a | 1

Réponse apportée
contour map from 3-column matrix?
You've got a list of locations and values. Visualizations like contour are showing what happens between the values. To do that, ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Legend and for loops
You're saying you call legend([h hh hhh], ...) each time around the loop? That means that each time you're telling lege...

presque 9 ans il y a | 1

Réponse apportée
Why is not every Marker filled in my Plot
My guess is that the markers are actually behind the filled grey regions, and your SortMethod is depthsort, and your renderer is...

presque 9 ans il y a | 1

Réponse apportée
Marker size based on value
The help for scatterm says: scatterm(LAT,LON,S,C) displays colored circles at the locations specified by the vectors LAT...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
create mesh from X,Y
No, meshgrid with 3 inputs is going to give you a 3D grid. You still want a 2D grid for surf. I think that you're just trying to...

environ 9 ans il y a | 0

Réponse apportée
Repositioning multiple subplots - not all plots appearing
If you're setting all of the positions manually, then subplot isn't really doing anything for you. You might consider just calli...

environ 9 ans il y a | 2

| A accepté

Réponse apportée
How to plot plate mode shape with thickness
Here's a simple example that might get you started: thickness = .2; [x,y] = meshgrid(linspace(-3,3,40)); % re...

environ 9 ans il y a | 2

Réponse apportée
How to color a range of bins in histogram?
Usually the most robust way is to create two separate histogram objects: x = rand(10000,1); mask = x<.5; bin_edges...

environ 9 ans il y a | 6

Réponse apportée
Insert image behind graph
You can use hold to combine two things in the same axes. And you can set the XData & YData of an image to position. Combining...

environ 9 ans il y a | 3

| A accepté

Réponse apportée
Rotate 3D lines in subplots. How do I use camorbit in subplots ?
Subplot returns a handle to an axes. Camorbit accepts a handle to an axes. So you can connect them together like so: ax = g...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
How to develop MATLAB code for 3D Voronoi in cubical volume?
What have you tried so far? The <http://www.mathworks.com/help/matlab/ref/voronoin.html voronoin function> is the starting point...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Guide interface is different inside GUIDE and from running in 2015b
Just a guess because there aren't many details here, but have you checked <http://www.mathworks.com/help/matlab/graphics_transit...

environ 9 ans il y a | 0

Réponse apportée
How do I change the font size for text in my figure?
Yes, this can be confusing. Here's what you're probably seeing: figure % Creates a figure set(gca,'FontS...

environ 9 ans il y a | 21

Charger plus