Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fid = fopen('coords.csv', 'w'); % Opens a file to be written.
- fprintf(fid, 'Thwing,500,422\n'); % Writes location names and coordinates into the file.
- fprintf(fid, 'Kelvin Smith Library,460,422\n');
- fprintf(fid, 'Strosacker,523,280\n');
- fprintf(fid, 'South Campus,668,200\n');
- fprintf(fid, 'Veale,575,215\n');
- fprintf(fid, 'University Bookstore,596,500\n');
- fprintf(fid, 'Spartan Stadium,620,630\n');
- fprintf(fid, 'Leutner,555,635\n');
- fprintf(fid, 'Wade Lagoon,418,375\n');
- fprintf(fid, 'University Hospital,545,350\n');
- fprintf(fid, 'CIM,485,600\n');
- fprintf(fid, 'CIA,463,480\n');
- fprintf(fid, 'Museum of Natural History,357,563\n');
- fprintf(fid, 'Botannical Gardens,457,553\n');
- fprintf(fid, 'Museum of Art,400,480\n');
- fprintf(fid, 'North Residential Village, 550,620\n');
- fprintf(fid, 'Village,596,600\n');
- fprintf(fid, 'WR Historical Society, 423,630\n');
- fprintf(fid, 'PBL,505,505\n');
- fprintf(fid, 'Mather Quad,527,488\n');
- fprintf(fid, 'Sears,495,245\n');
- fprintf(fid, 'Nord,495,235\n');
- fprintf(fid, 'Rockefeller,500,290\n');
- fprintf(fid, 'Kent Hale Smith,543,280\n');
- fprintf(fid, 'Adelbert Hall,500,320\n');
- fprintf(fid, 'Crawford,443,325\n');
- fprintf(fid, 'Yost,470,275\n');
- fclose(fid); % Closes the file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement