ENG EK 127 Study Guide - Midterm Guide: Identity Matrix, Bar Chart, Pie Chart
Document Summary
When doing 1 < x < 5, the leftmost inequality is compared first, then the result is used in the second inequality a persistent variable is unaffected by the main script. Matrices and vectors mat= [1 2 3; 4 5 6] reshape (mat,3,2) mat(1,:) Arrays strings represent point group/line group in order they were plotted. - dashed b g r c v x blue green red cyan magenta m + plus star yellow square black white diamond. Matrix multiplication a = [1 3; 2 -3]; Saving y k s w d save filename: saves all current workspace variables. R" w" a" fileid: returns -1 if the opening is failed result = fclose(fileid): returns -1 if failed. Reading & writing fgetl(fileid): reads file line by line for strings. While feof(fileid): goes until end of file reached fprintf(fileid, %s %d", variable(s)): writes line fscanf(fileid, %d %s", [#, #]): reads formatted data textscan(fileid, %s %d"): stores in cell array.