Getting error message, "Execution of script bar as a function is not supported".
조회 수: 22 (최근 30일)
이전 댓글 표시
Muhtasim Al Muyeed Jim
2021년 7월 30일
댓글: Muhtasim Al Muyeed Jim
2021년 7월 30일
The code works fine in the online version of MATLAB, but in the installed version I get this error message,"Execution of script bar as a function is not supported" . I don't understand what seems to be the problem. I don't have any variable named 'bar'.
X = categorical({'Tensile Strength,ksi','Yield Strength(0.2% offset),ksi','% Elongation in 2 inches'});
X = reordercats(X,{'Tensile Strength,ksi','Yield Strength(0.2% offset),ksi','% Elongation in 2 inches'});
Y = [125,150,118;110,132,102;20,17,22];
bar(X,Y)
legend("DOT-3AA cylinder","4130 Steel (Tempered at 1000 ºF)","4130 Steel (Tempered at 1200 ºF)")
댓글 수: 0
채택된 답변
Walter Roberson
2021년 7월 30일
which -all bar
will show you that you have a bar.m in your path that is not the Mathworks bar function
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!