[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Matlab classes supported?
From: |
Bart Vandewoestyne |
Subject: |
Matlab classes supported? |
Date: |
Thu, 31 Jul 2008 11:18:15 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Dear list,
I'm trying to figure out if Octave already supports Matlab
Classes and Object-Oriented Programming as explained on
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/ug_intropage.html
I've found this thread:
https://www.cae.wisc.edu/pipermail/help-octave/2006-November/002333.html
Where John announces that classes won't appear in any snapshot
until after 3.0 is released.
Here at work, I only have access to Octave 2.9.12 that comes
packaged in the Linux distribution we're using. I did a small
test with the following code example from the Matlab website:
classdef TensileData
properties
Material = '';
SampleNumber = 0;
Stress
Strain
Modulus = 0;
end
end
but it does not seem to work:
octave:1> td = TensileData;
parse error near line 1 of file
/amd/hlawka/export/home1/bartv/research/octave/tests/TensileData.m
syntax error
>>> classdef TensileData
^
error: near line 2 of file
`/amd/hlawka/export/home1/bartv/research/octave/tests/TensileData.m'
error: evaluating assignment expression near line 1, column 4
It's probably quite normal that this doesn't work, since I'm testing on 2.9.12
and not 3.0 or later.
I've also checked the NEWS Archives at the Octave website, searching for
the string 'class', but nothing came up in my search results.
Before I try to compile a more recent version of Octave myself to see if
Matlab classes are supported, can somebody tell me in how far Matlab classes
are supported?
Thanks,
Bart
--
"Share what you know. Learn what you don't."
- Matlab classes supported?,
Bart Vandewoestyne <=