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

15 visualizzazioni (ultimi 30 giorni)
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 Commenti
Kaviya Meena
Kaviya Meena il 31 Mag 2022
Yes, I am already having a matlab file named as feature.m....whether that is cause of this issue

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 31 Mag 2022
which -all feature
will show that you have your own feature.m that is interfering with calling the matlab function feature()
  9 Commenti

Accedi per commentare.

Più risposte (1)

vasanthkumar
vasanthkumar il 21 Feb 2023
Hi, i am using MATLAB 2022b offline i am facing this issue as file attached below , please help me out.

Categorie

Scopri di più su Language Support in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by