Clear Filters
Clear Filters

Attempt to execute SCRIPT mapping as a function

1 view (last 30 days)
hiva
hiva on 5 Apr 2016
Answered: hiva on 5 Apr 2016
hie. i have a code which is fusing different classifiers in order to classify the data. this code is using prtools and i have got a mapping.m file in my prtools mapping folder. when i run the code i get this error: "Attempt to execute SCRIPT mapping as a function". the problem is that the code seems to apply this mapping.m as a function while it is really not. when i try : which -all mapping it returns me the path of the mapping file in prtools.(i also have a mapping.p file in this folder). when i open this mapping.m file in prtools, it is an all commented file explaining about Mapping class constructor. i really have no idea what to do with its instructions and why my fusion code is considering this file as a function. i attach my code, my train and test datasets and the mapping.m file. u need to have the prtools included in your matlab toolboxes to run this code.any idea will worth a lot to me since i really need to get this code run.

Answers (1)

hiva
hiva on 5 Apr 2016
i figured it out! the error was all about setting a path to prtools folder for matlab.

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!