ftype = boolean([1,1,1,0]);
% boolean indicator to select feature types
I have the code above, and the boolean() function is not working in my octave.
How can I convert Matlab's boolean() function to Octave function?
ftype = boolean([1,1,1,0]);
% boolean indicator to select feature types
I have the code above, and the boolean() function is not working in my octave.
How can I convert Matlab's boolean() function to Octave function?
I'm not sure why you're using boolean. It's part of Simulink and pretty much does nothing other than call logical. You should just be using logical within Matlab, and Octave has equivalent syntax.
Use this instead:
ftype = logical([1,1,1,0]);
whos ftype;
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ftype 1x4 4 logical
The logical function is supported by both Octave and Matlab: