フィルターのクリア

convert column to matrix

1 回表示 (過去 30 日間)
wave_buoys
wave_buoys 2017 年 4 月 27 日
コメント済み: wave_buoys 2017 年 4 月 27 日
Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy
  3 件のコメント
wave_buoys
wave_buoys 2017 年 4 月 27 日
編集済み: wave_buoys 2017 年 4 月 27 日
Hi, the row is "DIRECTION" and the column is "FREQUENCY". I want to plot a matrix FREQUENCY x DIRECTION. Each (FREQUENCY, DIRECTION) has a value (ENERGY DENSITY=2nd column).
Thanks
wave_buoys
wave_buoys 2017 年 4 月 27 日
Could you try this file and help me?
Thanks

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

採用された回答

Stephen23
Stephen23 2017 年 4 月 27 日
編集済み: Stephen23 2017 年 4 月 27 日
Use griddata, probably something like this:
[yq,xq] = ndgrid(0:0.1:2,0:60:360);
vq = griddata(x,y,v,xq,yq);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by