Getting "Execution of script feature as a function is not supported "
91 views (last 30 days)
Show older comments
Kaviya Meena
on 31 May 2022
Answered: vasanthkumar
on 21 Feb 2023
For the below code I got an error as execution of script feature as a function is not supported. Could anyone please help me to get out from this error. My code is
function [dataset,classes ] = load_dataset(file_name)
dataset = readtable(filename,'TextType','string');
classes = "Result";
dataset= convertvars(dataset,classes,'categorical');
if ~isempty(dataset)
disp('Dataset has been loaded')
end
6 Comments
Accepted Answer
Walter Roberson
on 31 May 2022
which -all feature
will show that you have your own feature.m that is interfering with calling the matlab function feature()
9 Comments
More Answers (1)
vasanthkumar
on 21 Feb 2023
Hi, i am using MATLAB 2022b offline i am facing this issue as file attached below , please help me out.
0 Comments
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!