convert column to matrix

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by