Skip to main content

All Questions

Tagged with
0 votes
0 answers
32 views

Horizontal Angle Transmission in Ray Tracing Program - MatLab

I am working on a simulation of underwater sound propagation in MatLab. Currently, the program works in 2D, however, I am trying to transition it into 3D. Without just copying all 100+ lines of the ...
Chromozone's user avatar
0 votes
2 answers
104 views

Plotting far away objects in a 3D plot, Matlab

I have the 3D plot of an orbit around the Earth and the surface plot of the Earth itself. I want to see the Sun in the right spot too, but if I plot the surface plot of the Sun, the plot zooms out too ...
Michael Bay's user avatar
0 votes
1 answer
631 views

Error plotting spherical harmonics in MATLAB: Grid arrays must have NDGRID structure

I am trying to use the spherical harmonics to represent a perturbation of a spherical object in an acoustic and fluid flow in 3D. So far, I have been able to use a 2D perturbation on a 3D spherical ...
Jamie 's user avatar
  • 499
1 vote
1 answer
162 views

Merge several 2D plot into one 3D plot in MATLAB

I have three 2D plot that depends on the same x-variable. picture and these 3 plots are for different resolutions. the 3rd dimension will be low medium and high. I want them to plot as in the example. ...
Yasemin G.'s user avatar
2 votes
1 answer
218 views

Matlab isosurface plots lose 3d when used with subplot

I'm trying to plot a bunch of isosurface plots together with subplot, and I want them to appear 3d and be rotatable. However, I find that when I combine subplot with isosurface the plots appear 2d and ...
sodiumnitrate's user avatar
-1 votes
1 answer
70 views

coloring 3D plots on MATLAB

I made two 3D plots on the same axis. now I desire to give them different colors for easy identification. How do I do this coloring? The MATLAB code is shown below. tic Nx = 50; Ny = 50; x = linspace(...
koneh Norbert's user avatar
-1 votes
1 answer
235 views

How can I plot one plane in Surface plot (MATLAB)

This is the figure I have with me now. There are 10 planes, but I want to plot them individually. How can I do that?
und's user avatar
  • 1
1 vote
0 answers
151 views

How to plot a triangular pyramid in matlab with 4 vertex in matlab

After thousands trials, Im not able to 3d plot a pyramid using 4 vertex using surf. This is the best approach that I have found in matlab forum, but in my case I need to input those values and not be ...
MIKEL LASS's user avatar
1 vote
0 answers
1k views

MATLAB- Plotting points to 3D vector plot

I currently have this plot: The goal is to get a plot like this: I plotted the vectors using for idx = 1:size(starts,1) q=quiver3(starts(idx,1), starts(idx,2), starts(idx,3), ends(idx,1), ends(...
STEMQs's user avatar
  • 95
0 votes
1 answer
458 views

Revolution of a 2D polar plot in Matlab

I want to perform a 360° revolution of the following 2D polar plot, around the 0° direction axis: I do not have an analytical function describing it (e.g. f = R(theta)), but only two discrete arrays: ...
Guido's user avatar
  • 69
0 votes
1 answer
225 views

`streamline` not plotting this vector field

I am trying to test streamline with a very simple 3D vector field. I fill in a mesh using 3 for loops (not the best, but this is reminescent of a different expression for "v" which I couldn'...
usumdelphini's user avatar
-1 votes
1 answer
175 views

Plot any segment of any raw data matrix, with time at the x-axis and the voltage (the actual data) at the y-axis, using plot command

Dimensions of the EEG matrices indicate number of channels by number of sampling points by number of segments, i.e. in the EEG data holding segments of 10s duration, we have 8 channels, 5121 sampling ...
Ankush Rahul khanna's user avatar
1 vote
1 answer
174 views

Matlab - How to to fill an area in 3D space?

I wanted to fill a region in 3D space using some conditions. Suppose there is a vector like this: x1 = 100; y1 = 102; z1 = 103; P1 = [x1, y1, z1]; now I want to indicate the space for all possible ...
Hadi GhahremanNezhad's user avatar
0 votes
1 answer
38 views

How to adjust length of a line drawn between two lines?

I have a line that I have drawn between two points origin = [1 0 2]; point = [1 -2.8 2.8 ]; I want to draw a line between them at a certain distance. I have tried the following, which gives me wrong ...
George Lua's user avatar
0 votes
2 answers
647 views

Volumetric 3D data plotting from 2D map in MATLAB?

I have a heat map and want to convert this 2D matrix to a 3D volume/shape/surface data points for further processing. Not simply display it in 3D using surf. What would be a good way to do this? With ...
nolimits's user avatar

15 30 50 per page
1
2 3 4 5
15