Class inheritance from fi objects

1 回表示 (過去 30 日間)
Noam
Noam 2013 年 5 月 28 日
コメント済み: Timothy Koehler 2014 年 10 月 8 日
Hi,
I'm trying to create a sub-class for the fixed-point toolbox object 'fi'. This is in order to create additional methods for displaying values of fi data.
Tried several ways (listed below) - all of them return with the same error:
The specified super-class 'fi' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name
(No error# number is given)
This is even though I've got fixed point toolbox installed and working properly, with no problems.
I've tried the following:
1.
classdef fp < fi
end
2.
classdef fp < fi
methods
function out = fp(fi_args)
out = out@fi(fi_args)
end
end
end
Any help will be appreciated.
Using Matlab 2011b
Thanks, Noam

採用された回答

Daniel Shub
Daniel Shub 2013 年 5 月 28 日
I am not sure you can. It looks like the fi object is setup with the old style OO framework. The fi function calls embedded.fi which is really the fi class which is defined as a method of the embedded class. I am pretty sure you cannot mix the styles. I don't know the old style OO framework well enough to tell you if it is possible to subclass them. I would suggest browsing the source structure to see if you can get any insight.
  2 件のコメント
Noam
Noam 2013 年 5 月 28 日
Thanks! Will try...
Timothy Koehler
Timothy Koehler 2014 年 10 月 8 日
Was this effort ever successful?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConstruct and Work with Object Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by