How to insert data in a table in matlab ?
이전 댓글 표시
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
madhan ravi
2019년 4월 9일
편집: madhan ravi
2019년 4월 9일
Isn’t it vertical? Have you seen array2table() ?
per isakson
2019년 4월 9일
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
2019년 4월 10일
Maitha, in addition to the answers to your specific question, I suggest you take a look at timetables for these data.
답변 (2개)
madhan ravi
2019년 4월 9일
T.Altitude = (10:10:100).' % example
T.Azimuth = (1:10).' % just transpose
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!