[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Plotting bools ?
From: |
CdeMills |
Subject: |
Plotting bools ? |
Date: |
Fri, 24 Feb 2012 00:58:50 -0800 (PST) |
Hello,
When processing series of measurements, I usually encode states into logical
vectors. Such vectors can not be plotted directly, while
plot(int8(some_bool_vector)) is just OK. Could such logical vectors be
allowed as input for plot () by implicitelly enabling to bool to int
conversion ?
Under 3.6, I get as error message:
plot (logical (randn (1, 100) > 0))
warning: implicit conversion from matrix to sq_string
error: get: unknown line property ^A
error: called from:
error: /usr/share/octave/3.6.0/m/plot/private/__line__.m at line 113,
column 16
error: /usr/share/octave/3.6.0/m/plot/line.m at line 38, column 5
error: /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 597, column
12
error: /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 238,
column 14
error: /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 193,
column 10
error: /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 104,
column 17
error: /usr/share/octave/3.6.0/m/plot/plot.m at line 196, column 9
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/Plotting-bools-tp4416563p4416563.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- Plotting bools ?,
CdeMills <=