Path: news.mathworks.com!not-for-mail
From: "Mohammed Yahia" <osamabinmohammed@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: xlsread function
Date: Wed, 23 Mar 2011 11:53:05 +0000 (UTC)
Organization: KFU
Lines: 11
Message-ID: <imcmv1$46j$1@fred.mathworks.com>
References: <imb4o5$lc9$1@fred.mathworks.com> <imbhsn$g3g$1@fred.mathworks.com>
Reply-To: "Mohammed Yahia" <osamabinmohammed@hotmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1300881185 4307 172.30.248.45 (23 Mar 2011 11:53:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Mar 2011 11:53:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1302595
Xref: news.mathworks.com comp.soft-sys.matlab:717617

"Sadik " <sadik.hava@gmail.com> wrote in message <imbhsn$g3g$1@fred.mathworks.com>...
> Hi Mohammed,
> 
> You may try the following which suggests reading all four columns and then doing the selection inside matlab:
> 
> A=xlsread('myExcelFile.xls','mySheet','A1:D10');
> A = A(:,[1 4]);
> 
> Best.

Thanks