plot the vector of two directions
이전 댓글 표시
clc
clear all
syms x y
F=input( 'enter the vector as i, and j order in vector form:');
P = inline(vectorize(F(1)), 'x', 'y');
Q = inline(vectorize(F(2)), 'x', 'y');
x = linspace(-1, 1, 10);
y = x;
[X,Y] = meshgrid(x,y);
U = P(X,Y);
V = Q(X,Y);
quiver(X,Y,U,V,1)
axis on
xlabel('x')
ylabel('y')
댓글 수: 1
Image Analyst
2022년 1월 8일
편집: Image Analyst
2022년 1월 8일
This is an announcement (or a command/order to us). Do you have a question?
답변 (1개)
Rishabh Singh
2022년 1월 12일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!