I can't call this function from the command window. The function is meant to output values and plot graphs from a data file.
이전 댓글 표시
function [C Gouws,19114656,UTS,E,H,n] = HW1_19114656(filename, Sy)
The error when calling this function is "Error: File: HW1_19114656.m Line: 1 Column: 19 Unexpected MATLAB expression."
How do I call the funtion from the command window and is the function name set correctly?
답변 (1개)
James Tursa
2018년 2월 22일
Don't put literal values in the output of a function definition line. Use a variable instead. E.g.,
function [C Gouws,19114656,UTS,E,H,n] = HW1_19114656(filename, Sy)
should be
function [C Gouws,output2,UTS,E,H,n] = HW1_19114656(filename, Sy)
% your code here
output2 = 19114656;
end
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!