How to import an excel spreadsheet into matlab

Solved
malak -  
 ben -
Hello,
please I would like to work on a multiple linear regression using Matlab but I don't know how to extract data from an Excel file and import it into Matlab. I used the xlsread function but it didn't work. Thank you for the help.
Configuration: Windows XP Internet Explorer 6.0

6 réponses

Sacabouffe Posted messages 9427 Registration date   Status Membre Last intervention   1 863
 
Hello

xlsread works very well.
[num, txt, tab] = xlsread('file.xls');
* num is the matrix containing the values of all the numerical cells in the Excel table
* text is a cell array of strings. Its cells are the strings from the cells of the Excel table
* tab is a cell array whose cells are those of the Excel table

See you later
--
Thought I heard a rumbling, calling to my name
Two hundred million guns are loaded, Satan cries "Take aim!"
58
smalldjo
 
Thank you for your help.
0
ben
 
Thank you
you really helped me.
0