Hye Everyone. im newbie in matlab, then i want to ask you all about the simple question.
Ältere Kommentare anzeigen
how i can i can store my data x,y@latitude,longitude and z@height in m-file? and how i can load it?
are like this?
10000 10010 -11
10010 10010 -13
10020 10010 -10
10030 10010 -9
10040 10010 -14
10050 10010 -17
10060 10010 -11
10070 10010 -14
10080 10010 -17
10090 10010 -8
10100 10010 -7
10000 10020 -15
10010 10020 -8
10020 10020 -9
10030 10020 -10
10040 10020 -11
10050 10020 -14
10060 10020 -8
10070 10020 -7
10080 10020 -6
10090 10020 -6
10100 10020 -8
10000 10030 -9
10010 10030 -10
10020 10030 -11
10030 10030 -14
10040 10030 -11
10050 10030 -12
10060 10030 -14
10070 10030 -9
10080 10030 -10
10090 10030 -12
10100 10030 -14
1 Kommentar
Hiskiel Stephanus
am 9 Jun. 2015
Bearbeitet: Walter Roberson
am 9 Jun. 2015
%assuming you have this set of data in an excel file
%you can use the "xlsread" command in MATLAB and assign each collum to a variable
%lets say your file name is "filename"
%lets alos assume the first collumn contains the latitude data
%the second collumn contains the longitude data
%the third collumn contains the data on the height
%%Then here you go
latitude=xlsread('filename.xlsx','A1:A30');
longutide=xlsread('filename.xlsx','B1:B30');
height=xlsread('filename.xlsx','C1:C30');
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 7 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 7 Jun. 2015
You can save your data in a mat-file
v=[1 2 3;4 5 6] % Example
save filename v
To load them use load function
1 Kommentar
aixat amxan
am 7 Jun. 2015
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!