meshgrid will also work if the dimensions of vector x and vector y are different. No of rows of X will be the dimension of y, and number of columns of Y will be the dimension of X. Hope the above statement is correct.
The post accompanying this video is given here: aleksandarhaber.com/explanation-of-meshgrid-function-in-matlab-and-3d-plotting-using-mesh-surf-and-surfl-functions/
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way: - Buy me a Coffee: www.buymeacoffee.com/AleksandarHaber - PayPal: www.paypal.me/AleksandarHaber - Patreon: www.patreon.com/user?u=32080176&fan_landing=true - You Can also press the Thanks RUclips Dollar button
Hello, I am currently a freshman and struggling to use python for my Calculus project. How should I do if I need to illustrate 2 3D objects at the same time, in only one picture? I am looking forward to your help. Thank you so much.
This is definitely possible. Did you try with "hold on" in MATLAB. This command is used to plot several curves on the same graph. Maybe it can also work with surf and Meshgrid. Unfortunately, I do not have time to investigate this further.
Thank you so much for the description, I am working on the physics project for the wave guide simulation and ur video helped me so much thanks
Glad it helps
meshgrid will also work if the dimensions of vector x and vector y are different. No of rows of X will be the dimension of y, and number of columns of Y will be the dimension of X.
Hope the above statement is correct.
I think so, you can give it a try.
Did u do it? What is the outcome?
The post accompanying this video is given here: aleksandarhaber.com/explanation-of-meshgrid-function-in-matlab-and-3d-plotting-using-mesh-surf-and-surfl-functions/
Thank you.
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- Buy me a Coffee: www.buymeacoffee.com/AleksandarHaber
- PayPal: www.paypal.me/AleksandarHaber
- Patreon: www.patreon.com/user?u=32080176&fan_landing=true
- You Can also press the Thanks RUclips Dollar button
sir, can it possible to create 3d surface plot by taking a grayscale image as an input?
If your grayscale image is a matrix, this is possible I think. surf() function requires that you specify a matrix as an input. Best, A. Haber
Great content! However, how does someon set axes limits of a surf plot?
When I set limites they reflect on the axes but my plot disappears
Hello Freeman, thank you for the comment. I am not sure how to do that. Sorry that I do not have time to investigate that. Best, A. Haber
Hello, I am currently a freshman and struggling to use python for my Calculus project. How should I do if I need to illustrate 2 3D objects at the same time, in only one picture? I am looking forward to your help. Thank you so much.
This is definitely possible. Did you try with "hold on" in MATLAB. This command is used to plot several curves on the same graph. Maybe it can also work with surf and Meshgrid. Unfortunately, I do not have time to investigate this further.