MATLAB: Hye Everyone. im newbie in matlab, then i want to ask you all about the simple question.

data coordinate and height

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

Best Answer

MyData = [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];
save('MyData.mat', 'MyData')
Related Question