Community Profile # Patrick Kalita

### MathWorks

Active since 2011

#### Statistics

All
• • • • • • • • • #### Content Feed

View by

Plotting a 3D scalar field as a coloured 3D scatter graph
If you want to use <https://www.mathworks.com/help/techdoc/ref/scatter3.html |scatter3|>, you can pass it your |x|, |y|, and |z|...

más de 8 años ago | 1

| accepted

creating 3D mesh for some points in space
<http://www.mathworks.com/help/matlab/ref/trimesh.html |trimesh|> is probably what you want to use. You can also use <http://www...

más de 9 años ago | 2

how to setup a color matrix in surf(x,y,z,C) that has two components, one fixed, one related to data?
This approach certain has its limitations, but it's also pretty easy to implement: If you set the CData values on the border to ...

alrededor de 10 años ago | 0

| accepted

get rid of rugged edges plotted with trisurf
Try changing the figure's renderer to ZBuffer: set(gcf, 'Renderer', 'zbuffer');

más de 10 años ago | 0

Matlab 3D view matrix
The matrix returned by |view| isn't terribly useful unless the axes' <http://www.mathworks.com/help/techdoc/visualize/f4-24991.h...

más de 10 años ago | 0

Y- axis marking
Use the technique described here: <http://www.mathworks.com/support/solutions/en/data/1-16KCT/?solution=1-16KCT>

más de 10 años ago | 0

how to plot data points with different color in scatter plot?
You can use the fourth input argument to <http://www.mathworks.com/help/techdoc/ref/scatter.html |scatter|> to control the color...

más de 10 años ago | 2

Colormap gradient on patch object together with a surface object
When the surface is added, MATLAB automatically changes the <http://www.mathworks.com/support/tech-notes/1200/1201.html#Section_...

más de 10 años ago | 0

| accepted

how to allow user to get an arbitrary line profile from a contourplot
What you're asking to do isn't something that's going to have an off-the-shelf solution. _You need to build it yourself_. To...

más de 10 años ago | 0

How to generate a date vactor of weekly intervals.
Start by defining the beginning of the vector using <http://www.mathworks.com/help/techdoc/ref/datenum.html |datenum|>: sta...

más de 10 años ago | 0

| accepted

2D contourplots of a 3D function
I think you want to use <http://www.mathworks.com/help/techdoc/ref/slice.html |slice|>.

más de 10 años ago | 0

| accepted

RGB-images on a 3D cube
This is an application for <http://www.mathworks.com/help/techdoc/visualize/f0-18164.html#f0-9250 texture mapping>. You can crea...

más de 10 años ago | 4

| accepted

Simple 3D vector plotting
You're asking quite a lot there. Here are a few functions that will get you going in the right direction: * For drawing vecto...

más de 10 años ago | 3

How to merge 3d plots of level planes into one plot (graph)
I'm not familiar with the |plotregion.m| function, but the first thing I would do is check to see if returns a graphics object h...

más de 10 años ago | 0

3D surface plot in matlab
Check out the answers to these very similar question: * <http://www.mathworks.com/matlabcentral/answers/220-3d-plot-from-impo...

más de 10 años ago | 0

changing the style in a loop with hold all...
This is the same basic idea as Kevin Holst's answer, but you don't need to set the default |LineStyleOrder| for all axes. You ca...

más de 10 años ago | 2

export x and y data from a matlab plot into a matrix
Follow the steps outlined in this solution: <http://www.mathworks.com/support/solutions/en/data/1-A6PBV2/?solution=1-A6PBV2 How ...

más de 10 años ago | 0

Rotate a figure created with the area function
Call |view(90,90)| after you create your area plot. More info <http://www.mathworks.com/support/solutions/en/data/1-8QBW3A/index...

más de 10 años ago | 0

| accepted

How to make MATLAB render 3D objects properly on close up?
Ah, okay. Here's what's going on. There are *three* axes camera properties that you need to worry about. You are currently only ...

más de 10 años ago | 0

Plot a time series with the whole number not 10^(n)
<http://www.mathworks.com/support/solutions/en/data/1-16KCT/?solution=1-16KCT This page> describes how to apply any kind of nume...

más de 10 años ago | 1

| accepted

Quiver plot between 2 dots.
You simply need to compute the difference between the two vectors: P1=[ 0.85 4.87] P2=[ 0.88 4.88] D = P2 - P1; qu...

más de 10 años ago | 0

| accepted

Particle motion in electromagnetic field
The <http://www.mathworks.com/help/techdoc/ref/ode23.html |ode| family of functions> are used to solve differential equations in...

más de 10 años ago | 0

Interpolating Faces in Surface plot
I'm not exactly clear what you're looking for. But have you tried calling shading interp after creating the surface? Tha...

más de 10 años ago | 0

Setting DisplayName for a bar graph
The help for <http://www.mathworks.com/help/techdoc/ref/set.html |set|> says: |set(H,pn,MxN_pv) sets n property values on each ...

más de 10 años ago | 4

| accepted

How to show partial legend in figure
the cyclist's solution of passing plot handles to the |legend| command is good. But if you're feeling adventurous, you can also ...

más de 10 años ago | 4

'legend' problem
This is along the same lines as Junaid's answer. The idea is to use the plot's |DisplayName| property to set the legend text for...

más de 10 años ago | 0

Print a Figure with two Y-Axes - displaced coordinate systems
This is just a guess, but you could try doing this at the end of your code: set(AX, 'ActivePositionProperty', 'position'); ...

más de 10 años ago | 1

preserve datetick labels when resizing
Here's a small example that might help: function test plot( now : now+30, rand( 1, 31 ) ); datetick x; s...

más de 10 años ago | 0