help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classdef in 4.1.0+


From: Mike Miller
Subject: Re: Classdef in 4.1.0+
Date: Mon, 3 Aug 2015 12:01:37 -0400

On Mon, Aug 3, 2015 at 17:52:04 +0200, Hossam Afifi wrote:
> thank you
>
> this is an example file taken from a wireless channel modelling tool. The 
> error is on classdef word itself.
>
> Regards
>
> H. Afifi
>
> ...................................................
>
> $ octave  quadri/source/@simulation_parameters/simulation_parameters.m
>
>   classdef must appear inside a file containing only a class definition

Well, first of all you're trying to execute the file like a script,
but it's a class definition file, not a script.

When I try to instantiate the class in Octave, I get

  octave:1> x = simulation_parameters
  error: class not found: matlab.mixin.Copyable

so yes, the classdef syntax is being parsed, but you're not going to
have any luck using classes that require Matlab specific libraries
like this.

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]