convert column to matrix

1 visualizzazione (ultimi 30 giorni)
wave_buoys
wave_buoys il 27 Apr 2017
Commentato: wave_buoys il 27 Apr 2017
Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy
  3 Commenti
wave_buoys
wave_buoys il 27 Apr 2017
Modificato: wave_buoys il 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 il 27 Apr 2017
Could you try this file and help me?
Thanks

Accedi per commentare.

Risposta accettata

Stephen23
Stephen23 il 27 Apr 2017
Modificato: Stephen23 il 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);

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by