Effacer les filtres
Effacer les filtres

convert column to matrix

1 vue (au cours des 30 derniers jours)
wave_buoys
wave_buoys le 27 Avr 2017
Commenté : wave_buoys le 27 Avr 2017
Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy
  3 commentaires
wave_buoys
wave_buoys le 27 Avr 2017
Modifié(e) : wave_buoys le 27 Avr 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 le 27 Avr 2017
Could you try this file and help me?
Thanks

Connectez-vous pour commenter.

Réponse acceptée

Stephen23
Stephen23 le 27 Avr 2017
Modifié(e) : Stephen23 le 27 Avr 2017
Use griddata, probably something like this:
[yq,xq] = ndgrid(0:0.1:2,0:60:360);
vq = griddata(x,y,v,xq,yq);

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by