help-octave
[Top][All Lists]
Advanced

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

Re: error: invalid value for array property "xdata"


From: Jonathan Camilleri
Subject: Re: error: invalid value for array property "xdata"
Date: Sat, 5 Dec 2015 21:33:22 +0100

Can I ask for an example or further information on xdata therefore?

On 5 December 2015 at 21:23, Nicholas Jankowski <address@hidden> wrote:


On Dec 5, 2015 11:25 AM, "Jonathan Camilleri" <address@hidden> wrote:
>
> Why is this error being displayed?
>
> >> pr={1,0}
> pr =
> {
>   [1,1] =  1
>   [1,2] = 0
> }
> >> plot(pr,1)
> error: invalid value for array property "xdata"
> error: called from
>     __line__ at line 120 column 16
>     line at line 56 column 8
>     __plt__>__plt2vs__ at line 466 column 15
>     __plt__>__plt2__ at line 244 column 14
>     __plt__ at line 113 column 17
>     plot at line 220 column 10
> >> xdata=0
> xdata = 0
> >> plot(pr,1)
> error: invalid value for array property "xdata"
> error: called from
>     __line__ at line 120 column 16
>     line at line 56 column 8
>     __plt__>__plt2vs__ at line 466 column 15
>     __plt__>__plt2__ at line 244 column 14
>     __plt__ at line 113 column 17
>     plot at line 220 column 10
> >> help xdata
> error: help: 'xdata' not found
>
> --
> Jonathan Camilleri
>
> Mobile (MT): ++356 7982 7113
> E-mail: address@hidden
> Please consider your environmental responsibility before printing this e-mail.
>  
> I usually reply to emails within 2 business days.  If it's urgent, give me a call.
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
>

xdata is referring to the data you are putting in for the x values in plot (the first argument). It doesn't work with cell arrays which is what you tried to give it. Cell arrays are not normal arrays.

Nickj




--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113
E-mail: address@hidden
Please consider your environmental responsibility before printing this e-mail.
 
I usually reply to emails within 2 business days.  If it's urgent, give me a call.

and, angel start-up investment opportunities available at http://slyth3.wix.com/jon-business.
Online resume is available online at http://mt.linkedin.com/in/jonathancamilleri and shared bookmarks at https://delicious.com/jon80.


reply via email to

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