How to export the decimal and negative data to excel
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rohan Maharjajn
am 29 Jan. 2017
Kommentiert: Walter Roberson
am 30 Jan. 2017
clc
clear
hold all
% Plot cylinder
[X,Y,Z] = cylinder(5,100);
[TRI,v]= surf2patch(X,Y,Z);
patch('Vertices',v,'Faces',TRI,'facecolor',[1 1 0.5],'facealpha',0.5);
view(3);axis square; grid on; title('Enclosed Cylinder')
format long
xlswrite('myfile4.xlsx', X, ['A1:A'
num2str(length(X))]);
xlswrite('myfile4.xlsx', Y, ['B1:B' num2str(length(Y))]);
xlswrite('myfile4.xlsx', Z, ['C1:C' num2str(length(Z))]);
hold off
I get #N/A after third column .
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Jan. 2017
I suggest you use
xlswrite('myfile4.xlsx', [X(:), Y(:), Z(:)]);
2 Kommentare
Walter Roberson
am 30 Jan. 2017
Communication with Catia is discussed in http://www.mathworks.com/matlabcentral/answers/15228-link-catia-to-matlab and a few other posts.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!