How to insert data in a table in matlab ?
Mostrar comentarios más antiguos
I want to insert numbers in altitude and azimuth in a vertical way.
Time = {'6:57 pm' ; '7:00 pm'; '7:03 pm'; '7:06 pm' ;'7:09 pm'; '7:11 pm' ; '7:14 pm'; '7:17 pm' ; '7:20 pm'; '7:23 pm' } ;
Altitude = rand(10,1) ;
Azimuth = rand(10,1) ;
T = table(Time,Altitude,Azimuth)
3 comentarios
madhan ravi
el 9 de Abr. de 2019
Editada: madhan ravi
el 9 de Abr. de 2019
Isn’t it vertical? Have you seen array2table() ?
per isakson
el 9 de Abr. de 2019
Your script already creates a table with vertical columns
T =
10×3 table
Time Altitude Azimuth
_________ ________ ________
'6:57 pm' 0.33712 0.74815
'7:00 pm' 0.16218 0.45054
'7:03 pm' 0.79428 0.083821
'7:06 pm' 0.31122 0.22898
'7:09 pm' 0.52853 0.91334
'7:11 pm' 0.16565 0.15238
'7:14 pm' 0.60198 0.82582
'7:17 pm' 0.26297 0.53834
'7:20 pm' 0.65408 0.99613
'7:23 pm' 0.68921 0.078176
Peter Perkins
el 10 de Abr. de 2019
Maitha, in addition to the answers to your specific question, I suggest you take a look at timetables for these data.
Respuestas (2)
Maitha Almarzooqi
el 9 de Abr. de 2019
0 votos
madhan ravi
el 9 de Abr. de 2019
T.Altitude = (10:10:100).' % example
T.Azimuth = (1:10).' % just transpose
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!