Clear Filters
Clear Filters

Getting "Execution of script feature as a function is not supported "

45 views (last 30 days)
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
Kaviya Meena
Kaviya Meena on 31 May 2022
Yes, I am already having a matlab file named as feature.m....whether that is cause of this issue

Sign in to comment.

Accepted Answer

Walter Roberson
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

Sign in to comment.

More Answers (1)

vasanthkumar
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.

Categories

Find more on Startup and Shutdown 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!