Initialize array cell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Initialize array cell

shivax
hi,

how i initialize a  Cell Arrays?

i need to use Cell Array of n element

Before i use it..i want initialize to value -1





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


Reply | Threaded
Open this post in threaded view
|

Re: Initialize array cell

Ian McCallion


On 18 July 2018 at 12:38, shivax <[hidden email]> wrote:
hi,

how i initialize a  Cell Arrays?

i need to use Cell Array of n element

Before i use it..i want initialize to value -1

a=cell(1,3)
a(:)=-1

Cheers... Ian