"Not enough input arguments" plotting a function
이전 댓글 표시
(Today is my first day using Matlab.) I've been trying to plot the following function:
function[Rs] = sFn(r)
Rs = 2.*3^(-3./2).*(1-2.*r./3+2.*r^2/27).*exp(-r./3)
end
with
plot(sFn,r) or plot(Rs,r)
The first yields "Not enough input arguments" and the second "Undefined function or variable Rs". I cannot, for the life of me figure out how this is supposed to work. :( Help.
채택된 답변
추가 답변 (1개)
manan goel
2019년 8월 17일
x = linspace(-1,1,200);
y = 0.5.*sin.*[sin.*(12.*x)];
plot(x,y)
카테고리
도움말 센터 및 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!