can someone provide me alternative code for this? It shows U and v must be of same size. I am new to Matlab
3 ビュー (過去 30 日間)
古いコメントを表示
syms x y z
F=input('enter fuunction');
P=inline(vectorize(F(1)),'x','y','z');
Q=inline(vectorize(F(2)),'x','y','z');
R=inline(vectorize(F(3)),'x','y','z');
x=linspace(-1,1,5);y=x;
z=x;
[X,Y,Z]=meshgrid(x,y,z);
quiver3(X,Y,Z,P(X,Y,Z),Q(X,Y,Z),R(X,Y,Z),1.5)
axis on
xlabel('x')
ylabel('y')
zlabel('z')
0 件のコメント
回答 (1 件)
Sargondjani
2021 年 12 月 28 日
I think quiver and quiver3 only work with numerical data. So you to get numercial values for P, Q, R. I think you can use the function double for this.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Vector Fields についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!