Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
x、yの2次元配列があります。最初の行は x で、2 番目の行は y です。そのアレイで震えを使用しようとしていますが、成功していません。
誰かがプロットする方法を知っていれば、それは素晴らしいことです.
ありがとう!
これはあなたが求めているものですか?
2D 配列を定義します (各列 はベクトルのコンポーネントを表します)
MyArray = [1 2 3 4; 5 6 7 8];
4 つのベクトルの座標を抽出します。
u = MyArray(1,:); v = MyArray(2,:);
4 つのベクトルの開始点として原点を定義します。
x = zeros(1,4); y = zeros(1,4);
最後にquiver、2D ベクトルの関数を呼び出します。
quiver
quiver(x,y,u,v)