Matlab can graph a surface and in vector in R3 at the same time?
Show older comments
I have de following code:
clc; clear; close all;
[X,Y]=meshgrid(-2:.2:2, -1:.1:1);
Z=(1-X.^2 + Y.^2)/2;
surf(X,Y,Z);
quiver3(3,-1,0,5,3,6);
xlabel('eje x');
ylabel('eje y');
zlabel('eje z');
But I don't can see the two functions in the same graph.
Answers (1)
John D'Errico
on 14 Apr 2018
Time to read about the hold command.
hold on
Use it between the two plotting operations.
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!