matlab - Ploting a csv file? -
i have file csv file, in file how can plot d18:d10000
versus e18:e10000;
used [v,t]= scop('h.csv')
considering following function did not work:
function [v,t]=scope( filename ) v=xlsread(filename,'','e18:e10000'); t=xlsread(filename,'','d18:d10000'); plot(t,v)
you need specify sheet (second argument) either name or number:
xlsread(filename,'sheet1','e18:e10000');
or
xlsread(filename,1,'e18:e10000');
note apostrophes!
also xlsread has 3 output arguments:
[num, txt, raw] = xlsread(...)
you may need use raw output if data contains both text , nums.
try
help xlsread
Comments
Post a Comment