Getting "Execution of script feature as a function is not supported "
30 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2022 年 5 月 31 日
which -all feature
will show that you have your own feature.m that is interfering with calling the matlab function feature()
9 件のコメント
その他の回答 (1 件)
vasanthkumar
2023 年 2 月 21 日
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1301875/image.png)
Hi, i am using MATLAB 2022b offline i am facing this issue as file attached below , please help me out.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!