ENCP 100 - Looping Thru Files, Summing a Matrix, Plotting in MATLAB - Line By Line FILE mmmrmm read filefile LOOP THRU A function data fh

ENCP 100 - Looping Thru Files, Summing a Matrix, Plotting in MATLAB

This preview shows page 1 - 2 out of 2 pages.

LOOP THRU A FILE Line By Line mmmrmm function data read file file fh fopenffileirt to pen the file temp fgetlffhl.io set first line to Temp i D whilefischarftempt twhile temp something j it 15 data tempi A Add temp to a cell array temp fgetlffhls.net the next line of file end feloseffhle summing A Matrix Row columned murmur SUM Oi Inn he size Kmatrixt for fir I.hr for fic I.NO SUM sum matrix finish end end
Plotting in Matlab murmur X I in space festants rends s of points 5 X label f name on X Axis's ylabelf.name on y Axis.to Plot IX 4,5 line Type s point Type fool ours g axis flex mind ex maxi min cyma xD subplot knows Kolumnss stride xD plot yyfXI II X 2 T2 XM YM of Nplot specifications Line Type f point Type i fo t x colour fr b Y o Nsu b plot function subplot X Y Index Numbered

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture