Effacer les filtres
Effacer les filtres

Answered my own question, but posting for future reference (Method not defined or removed from search path)

9 vues (au cours des 30 derniers jours)
I have a class method calling a superclass method, ie,
getData@headerDirectory.SuperClassObject(sub_class_obj,rawData)
I have a getData method written for the superclass, yet when I called the getData method for the "subclass", I get the error "Method 'getData' is not defined for class 'headerDirectory.SuperClassObject' or is removed from MATLAB's search path.
I run
which -all getData
and get the path for both classes. I have another similar project where I do the same thing, so I could not figure out why this wasn't working.
I realized that in my superclass directory, I had +headerDirectory, but no @SuperClassObj folder. The methods and classdef file were free floating in the +headerDirectory.
I don't know if anyone else has accidentally done this, it took me embarassingly too long to figure it out.

Réponse acceptée

Ryan
Ryan le 16 Oct 2014
Answer in post.

Plus de réponses (0)

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by