필터 지우기
필터 지우기

hi, i wanna plot gaussion shape function with any arbitrrary number . how can i plot that?

조회 수: 2 (최근 30일)
hi, i wanna plot gaussion shape function with any arbitrrary number .
how can i plot that?
f(x) = a*exp(-(x-b).^2)/2*(c.^2);

채택된 답변

Alan Stevens
Alan Stevens 2020년 8월 17일
Define it as a function:
f = @(x,a,b,c) a*exp(-(x-b).^2)/(2*c^2);
then define your constants a, b and c, specify the range of values of x, call the function and plot the results. For example
a = 1; b = 2; c = 3;
x = -2:0.1:8;
y = f(x,a,b,c);
plot(x,y)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by