[scilab-Users] Help with Matrices and Stack Size
Celso Co
celso.co at gmail.com
Sun Jan 24 16:58:29 CET 2010
Dear Samuel
You may try the following:
clear;
sheets=readxls('test.xls') // test.xls is in the directory path
s1=sheets(1)
tday=s1(:,1)
cls=s1(:,$)
//mydata=[tday,cls]
mydata=list(tday,cls) // list is used instead of matrix variable
Regards,
celso
On Fri, Jan 22, 2010 at 1:30 PM, Samuel Gougeon <
Samuel.Gougeon at univ-lemans.fr> wrote:
> Hello,
>
> ----- Message d'origine -----
> De : Sean Cooper
> Date : 21/01/2010 21:45:
>
> .../...
>
> But when I execute the following in the text editor
>
>
>
> clear;
>
> sheets=readxls('C:\Program Files\scilab-5.2.0\myscilab\IGE.xls')
>
> s1=sheets(1)
>
> tday=s1(:,1)
>
> cls=s1(:,$)
>
> mydata=[tday,cls]
>
>
>
> I get “mydata=[tday,cls] !—error 144 Undefined operation for the given
> operands. Check or define function %1_c_1 for overloading.
>
>
>
> I get the same error if I execute…
>
>
>
> clear;
>
> sheets=readxls('C:\Program Files\scilab-5.2.0\myscilab\IGE.xls')
>
> s1=sheets(1)
>
> mydata=[s1(:,1),s1(:,$)]
>
>
>
> Anybody tell me what I am missing here?
>
> sheets is then a "mlist" (see the help readxls page)
> To get the corresponding matrix of strings: sheets.text
> To get the related matrix of numerical values: sheets.value
> To get the 3rd numerical column: sheets.value(:,3) (it should work; or:
> c=sheets.value; c(:,3) )
> and so on.
>
> Hope This Help
> Samuel
>
>
--
Eng'r Celso B. Co, PhD ECE
Assistant Professor
Dept. of Electronics, Computer, and Communication Engineering,
Loyola Schools of Science and Engineering, Ateneo De Manila
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100124/245019ee/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.xls
Type: application/vnd.ms-excel
Size: 20480 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20100124/245019ee/attachment.xls>
More information about the users
mailing list