Loading Csv files and plotting them as 3D graphs

Have a bunch of cvs files, and need to load them into matlab. Eventually plotting them as 3D maps.
cvsread is returning an error at the momoment.
Thanks Andrew

4 件のコメント

Iain
Iain 2014 年 9 月 15 日
Do you really mean cvs and not csv (comma separated values)?
Andrew
Andrew 2014 年 9 月 16 日
yeah csv sorry, thats the one
Andrew
Andrew 2014 年 9 月 16 日
this is what i have, dont think its correct as its returning a wierd image.
A=csvread('\\ntapprdfs01n02.rmit.internal\sh6\s3484096\MATLAB\Labsess\Data Files\CSV\3Dscan1.csv'); B=csvread('\\ntapprdfs01n02.rmit.internal\sh6\s3484096\MATLAB\Labsess\Data Files\CSV\3Dscan2.csv'); C=csvread('\\ntapprdfs01n02.rmit.internal\sh6\s3484096\MATLAB\Labsess\Data Files\CSV\3Dscan3.csv');
X = zeros(500,500);
for k = 1: length(A) X(A(k,1),A(k,2))= A(k,3); end
mesh(X)
Y = zeros(500,500); for k = 1: length(Y) Y(B(k,1),B(k,2))= B(k,3); end
mesh(B)
Here is one of the files
Yona
Yona 2014 年 9 月 16 日
what is the error you get? on "csvread" lines or after?
what contain each file? only number? title line?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2014 年 9 月 15 日

コメント済み:

2014 年 9 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by