Filter löschen
Filter löschen

convert column to matrix

1 Ansicht (letzte 30 Tage)
wave_buoys
wave_buoys am 27 Apr. 2017
Kommentiert: wave_buoys am 27 Apr. 2017
Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy
  3 Kommentare
wave_buoys
wave_buoys am 27 Apr. 2017
Bearbeitet: wave_buoys am 27 Apr. 2017
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 am 27 Apr. 2017
Could you try this file and help me?
Thanks

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stephen23
Stephen23 am 27 Apr. 2017
Bearbeitet: Stephen23 am 27 Apr. 2017
Use griddata, probably something like this:
[yq,xq] = ndgrid(0:0.1:2,0:60:360);
vq = griddata(x,y,v,xq,yq);

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by