Battery Stack Sensor

From Stu2
Revision as of 22:20, 4 January 2012 by Stu2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Scilab tips

// read the file
-->fid = file('open','/home/stu/Projects/VoltageMonitor/ps8501.dat','unknown')
-->data = read(fid, -1,2)
// change the column vector to a row vector
-->x=data(:,1)'
-->y=data(:,2)'
// find line
-->[a,b,sig]=linreg(x,y)