help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declare global as matrix...problem to use it


From: Mike Miller
Subject: Re: declare global as matrix...problem to use it
Date: Fri, 6 Jul 2018 19:07:19 -0700
User-agent: Mutt/1.10.0 (2018-05-17)

On Fri, Jul 06, 2018 at 15:24:08 -0700, LucaLuca wrote:
> i try to use global with array string but it give me error:
> 
> global string_dat_rp
> 
> string_dat_rp(1,:)={"xiao"};
> 
> error: operator =: no conversion for assignment of 'cell' to indexed
> 'matrix'

I think you want this instead

    global string_dat_rp
    string_dat_rp = {"xiao"};

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]