Array truncated to fit in range

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Array truncated to fit in range

LucaLuca
hi,
i receive this error when i create an array of large dimension (2000X350)

are there any limits of array size?





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Array truncated to fit in range

tmacchant
----- Original Message -----

> From: LucaLuca 
> To: help-octave
> Cc:
> Date: 2019/1/15, Tue 04:31
> Subject: Array truncated to fit in range
>
> hi,
> i receive this error when i create an array of large dimension (2000X350)
>
> are there any limits of array size?
>


Worked for me
>> A=ones(2000,350);


on octave-4.4.1 64bit on windows 10 64bit.
on octave-4.4.1 64bit on Ubuntu 16.04 and 18.04.


Do you use 32bit version octave?

Tatsuro


Reply | Threaded
Open this post in threaded view
|

Re: Array truncated to fit in range

Tomas
It also worked for me on 32bit Octave version (4.0.3, debian 9).

Tomas



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Array truncated to fit in range

LucaLuca
In reply to this post by tmacchant
hi, tmacchant
thank you for answer

i've install 64 bit version 4.4.1

i see the problem is to use xlswrite

i write this code:

matrixx=ones(2000,350);

strCompletaNum = C10:MN2009 ; (i calculate it with code but it's correct)

rstatus=xlswrite(nomeFileExcel,matrixx,nomeFoglio,strCompletaNum);  

i receive this error:

>> TitanWriteBackTest
strCompletaNum = C10:MN2009
warning: Array truncated to fit in range




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Array truncated to fit in range

mmuetzel
It works for me:

pkg load io
matrixx=ones(2000,350);
strCompletaNum = 'C10:MN2009';
xlswrite ('test123.xlsx', matrixx, 'test', strCompletaNum);

ans = 1


Which file type are you using (.xlsx in my example)?

What does "chk_spreadsheet_support" return for you?

Markus



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Array truncated to fit in range

LucaLuca
This post was updated on .
hi mmutzel...thank you for answer


i execute chk_spreadsheet_support

it return :

ans =  129



i used .xls as extension..

the problem is .xls

thank you to help me






--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html