How can I plot the vector for specified node?

2 ビュー (過去 30 日間)
Tan Has
Tan Has 2012 年 9 月 16 日
I am using following command
quiver(xarray(1:4:end),yarray(1:4:end),DV_XX(1:4:end),DV_YY(1:4:end),1, 'k','filled');
which is plotting the vector for every node. I want to plot for every alternate node that means it will plot 1st node then do not plot arrow for 2nd node the again plot the arrow for 3 rd node.
Any idea how can I do that?

採用された回答

Walter Roberson
Walter Roberson 2012 年 9 月 16 日
XX_t = DV_XX(1:4:end);
XX_t(2:2:end) = NaN;
and plot with XX_t instead of DV_XX(1:4:end)
  1 件のコメント
Tan Has
Tan Has 2012 年 9 月 16 日
THIS IS WORK FOR ME
XX_t = DV_XX(1:4:end);
XX_t(3:3:end) = NaN;
YY_t =DV_YY(1:4:end);
YY_t(2:3:end) = NaN;
quiver(xarray(1:4:end),yarray(1:4:end),XX_t,YY_t,1, 'k','filled');
BUT THE NAN VALUE IS PLOT AS A DOT IN THE FIGURE. I DON'T WANT TO SHOW THAT. HOW CAN I DO THAT.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by