I would like to draw a graph with the import of the date in abscisse
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello everyone, I would like to draw a graph with abscisse the date. I have a file that is composed like this: column 1 line number, column 2 day, column 3 months, column 4 years, column 5 hours, column 6 minutes, column 7 seconds, column 8 point number, column 9 coordinates EST, column 10 coordinates North and column 11 coordinates altitude. I would already like to draw a graph with the GNSS1 number for example and the east coordinates according to the dates. And I don't know how to import the dates into Matlab
댓글 수: 0
답변 (1개)
Prudhvi Peddagoni
2020년 12월 28일
Hi,
You can use import tool to import the data. Import it as a table. You can set the column names while importing.
You can extract the data from the table as follows.
indices=table.VarName8=='GNSS1' % getting the row numbers of the table with 8th column as 'GNSS1'
X=table.VarName1(indices); % extracting 1st column to a variable X
Y=table.VarName2(indices); % extracting 2nd column to a variable Y
plot(X,Y); % plotting 2nd column data against the first column data
Hope this helps.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!