why the vectors in the quiver plot are so small ?

12 ビュー (過去 30 日間)
muhammad choudhry
muhammad choudhry 2022 年 1 月 4 日
コメント済み: muhammad choudhry 2022 年 1 月 5 日
Hi,
I am reading the data from the csv file and plotting quiver using the code below but the vectors plotted there are not visible or one can say very small in size? is anyone know why? it supposed to show results something like attached image Export.61y83iia.0000.zip but it look like image untitled.jpg
Code:
%Specifying the folder where all the excel file for the last timestep are
a = readtable('Export.6tuxmp0w.000002.csv');
X=a{:,5};
Y=a{:,6};
U=a{:,9};
V=a{:,10};
quiver(X,Y,U,V);

採用された回答

yanqi liu
yanqi liu 2022 年 1 月 5 日
yes,sir,may be use
quiver(X,Y,U,V,2);
such as
clc; clear all; close all;
[x,y] = meshgrid(0:0.2:2,0:0.2:2);
u = cos(x).*y;
v = sin(x).*y;
figure
quiver(x,y,u,v)
figure
quiver(x,y,u,v,2)
  1 件のコメント
muhammad choudhry
muhammad choudhry 2022 年 1 月 5 日
thanks for pointing out!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by