having trouble with power eq. and log axis

조회 수: 1 (최근 30일)
sensation
sensation 2018년 9월 18일
Hi, I plotted my power fun but somehow it is not in the log. Any idea where I am doing wrong? Thanks a lot!
x = randi(11000,100,1);
y = randi(10000,100,1);
scatter(log(x),log(y),'*b');
[fitresult2,gof2] = fit(log(x),log(y),'b*x^m')
plot(fitresult2,log(x),log(y));

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by