MATLAB meshgrid, surf, and mesh 3D plotting

  Рет қаралды 30,607

Painless Programming

Painless Programming

Күн бұрын

MATLAB 3D plotting.
view(2) and view(3) commands for going from 2 to 3D views.
Creating a meshgrid for the foundation of surface plots and mesh plots.

Пікірлер: 13
@AwaisKhan-mh6cd
@AwaisKhan-mh6cd 2 жыл бұрын
such an underrated video, better than my damn university professor teachings 😂
@kasulavineethkumar3510
@kasulavineethkumar3510 3 жыл бұрын
this is world class!!! thank you soo much
@PainlessProgramming
@PainlessProgramming 3 жыл бұрын
Thanks so much for the comment!
@vijaychauhan9990
@vijaychauhan9990 3 жыл бұрын
Nice explain
@emadmalik1912
@emadmalik1912 Жыл бұрын
Thanks for the video! Question: Once I have a 3D surface, is there any way to interpolate to find a Z value based on an X1 and X2 values that dont have a Z value defined? In my case, Z is not based on a formula.
@andremartin7059
@andremartin7059 3 жыл бұрын
I love the explanation, it's so clear! Anyway could you help me to draw a 3d graphs but rather different than these one on video. My data is of the format (x,y,z,T), where x,y and z are axes indicating a point and T is the colour value at the specified point. I'm so thankful if you could make video to solve my problems, thanks in advance!
@PainlessProgramming
@PainlessProgramming 3 жыл бұрын
Great question. To be able to see individual points on a 3D graph you will want to select a point style, otherwise the points will be too small to view. Ex. to create a red diamond: plot3(0,0,0, 'rd'). and since you want more than one point to be displayed on the graph use: hold on command at the beginning of the program. If you are given the color in a variable T. ex T='r' then you can combine it with a shape: strcat(T, 'd') to use as the 4th argument to plot3. If you need me to create a video, send me some of the exact x,y,z, T values and any other requirements and I can create a video today.
@andremartin7059
@andremartin7059 3 жыл бұрын
@@PainlessProgramming first of all thanks for the quick response. yes it will be very helpful if you could make a video because I don't know much about 3D graphics. here are some of my data in (x, y, z, T) format: (3,25,300,Yellow),(2,25,500,Green),(1,75,700,Red),(0,50,500,Blue),(-1,50,300,Yellow),(-2,50,500,Green),(-3,75,700,Red). and could you show me how to plot in a shape other than points, like a mesh or maybe a surface (if it's possible). Once again I thank you very much for the help.
@PainlessProgramming
@PainlessProgramming 3 жыл бұрын
@@andremartin7059 kzbin.info/www/bejne/b4W2g42da8mVrck - hope this helps you visualize the data.
@konehnorbert6300
@konehnorbert6300 2 жыл бұрын
thanks for the video. Please I want to plot a 3D surf of two equations united by ‘if’ and ‘else’ statements. For example. “if X>Y Z=2X+Y elseif X
@PainlessProgramming
@PainlessProgramming 2 жыл бұрын
Can you give me the 2 equations you want to start with?
@VikiJoker1924
@VikiJoker1924 Жыл бұрын
Hello there, thanks for the great video! I have a similar program that I need to do in MATLAB. I have around 100 rows of X,Y,Z points as a data file, to be considered as a matrix. And 100 rows in 1 column of binary data, as a vector. I need to slice the 100 rows of xyz matrix data, with the vector data to obtain a 3D model. Could I contact you in person, maybe an email, regarding this problem? I do have a rough code, but would like if I get some help from someone who's well versed in MATLAB.
@FederationStarShip
@FederationStarShip 2 жыл бұрын
>> view(4) *Computer explodes*
MATLAB Random File Access
5:06
Painless Programming
Рет қаралды 536
Introduction to Meshgrid Function and 3D Plotting in MATLAB
9:17
Aleksandar Haber
Рет қаралды 19 М.
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 3,5 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 88 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН
Lecture --  Meshgrid
10:44
EMPossible
Рет қаралды 12 М.
Matlab 15: 3D Plots Surf, Mesh, Contour
9:10
Mahdi Farahikia
Рет қаралды 26 М.
Plotting 2D & 3D Graphs in SCILAB  | How to Plot Functions?
29:52
For the Love of Physics
Рет қаралды 17 М.
3D Plotting in Matlab
34:58
Christopher Lum
Рет қаралды 236 М.
Printing a Table using fprintf in Matlab
13:37
Zakaria Mahmud
Рет қаралды 98 М.
MATLAB global variables
4:28
Painless Programming
Рет қаралды 25 М.
Plotting in 3D in MATLAB
7:40
SnugglyHappyMathTime
Рет қаралды 80 М.
2D Plotting in Matlab
25:08
Christopher Lum
Рет қаралды 166 М.