Getting "Execution of script feature as a function is not supported "
이전 댓글 표시
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
Cris LaPierre
2022년 5월 31일
I inserted line feeds to make it easier to read the code withough having to scroll
Kaviya Meena
2022년 5월 31일
Walter Roberson
2022년 5월 31일
That's fine but the problem is the extra feature.m that you have.
Kaviya Meena
2022년 5월 31일
Walter Roberson
2022년 5월 31일
yes, I guarantee you that is the cause of the problem.
채택된 답변
추가 답변 (1개)
vasanthkumar
2023년 2월 21일
0 개 추천

Hi, i am using MATLAB 2022b offline i am facing this issue as file attached below , please help me out.
카테고리
도움말 센터 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
