I am getting a Error using alpha (line 68) Wrong number of arguments and was wondering if anyone could help me out because i am not sure what its saying.
조회 수: 5 (최근 30일)
이전 댓글 표시
alpha in degree
range=0:15:360;
Y=sind(range);
Table=[range;Y]';
disp('HW #6 - Evan Melanson');
disp('Problem #2');
VarNames = {'aplha (degrees)', 'sin(aplha)'};
fprintf(1, ' %s\t%s\t\n', VarNames{:});
fprintf(1, '\t%.1f\t%.4f\n', Table');
plot(range,Y);
title('sin(alpha) vs alpha');
xlabel('alpha (degrees)');
ylabel('sin(alpha)');
grid on
%if you get it to work thank you!
댓글 수: 0
답변 (1개)
Stephen23
2021년 11월 18일
편집: Stephen23
2021년 11월 18일
% alpha in degree <<<<<< This needs to be a comment, not code.
range=0:15:360;
Y=sind(range);
Table=[range;Y]';
disp('HW #6 - Evan Melanson');
disp('Problem #2');
VarNames = {'aplha (degrees)', 'sin(aplha)'};
fprintf(1, ' %s\t%s\t\n', VarNames{:});
fprintf(1, '\t%.1f\t%.4f\n', Table');
plot(range,Y);
title('sin(alpha) vs alpha');
xlabel('alpha (degrees)');
ylabel('sin(alpha)');
grid on
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!