Importing and Exporting Vectors edit page

Large lists of vectors can be imported from a text file by the command

fname = fullfile(mtexDataPath,'vector3d','vectors.txt');
v = vector3d.load(fname,'ColumnNames',{'polar angle','azimuth angle'})
v = vector3d
 size: 1000 x 1

and exported by the command

export(v,fname,'polar')