0
Is it possible to input values from Excel directly into scilab?

I'm working on a signal processing project, the issue with simply copy pasting values is that there are too many values, about 800,000 values in total, copy pasting these values causes the software to freeze up. Thanks a lot for any help.


Scilab Not Spam Edit Delete 03-11-19, 9:24 a.m. UltraEvilBob
0

You may save the Excel file as a CSV file. Then, using scilabfunction csvRead(), read that CSV file into an array. Assuming that you want to read a double array from the file named data.csv, here will be the code:

M = csvRead('data.csv', ',', '.', 'double');

or

M = csvRead('data.csv', [], [], 'double');

 

Not Spam 28-11-19, 3:19 p.m. sunilshetye Delete Edit


0
Sheets = readxls('SCI/modules/spreadsheet/demos/xls/t1.xls');
s1=Sheets(1);  //get the first sheet
s1.value;      //get the first sheet value field
s1.text;       //get the first sheet text field
s1(2,:);       //get the 2 row of the sheet
disp(s1)
Not Spam 02-01-20, 12:27 p.m. SharathDinesh Delete Edit