[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: invalid value for array property "xdata"
From: |
Nicholas Jankowski |
Subject: |
Re: error: invalid value for array property "xdata" |
Date: |
Sat, 5 Dec 2015 15:23:22 -0500 |
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