Octave oriented object

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Octave oriented object

Michel
Hello,

   I am trying the Octave oriented object.
  example. I created:
classdef sads
  properties
    Wavelenght
    c=3.e8;
    NumSensors
    NumSamples
    data
    Spacing
    SampleRate
    Name
  endproperties
endclassdef

 In the command line >> sads
ans =



With Matlab, I get details. With Ocatve, I get . How open sads?
What is the command?

Regards,
Michel



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave oriented object

Michel
I explain again the same thing.

What I get:

 s = sads
s =

<< object sads>>

Ok However, I should like getting something:

    Wavelenght =
    c=3.e8;
    NumSensors =
    NumSamples =
    data =
    Spacing =
    SampleRate =
    Name =

Michel



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave oriented object

mmuetzel
I think, you should be able to achieve that by overloading the disp method in
the sads class.

Markus



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html