function with ln and log
조회 수: 6 (최근 30일)
이전 댓글 표시
I am having issues with plotting.
my function is
y2 = (x-1)(ln((3^.5)/2)*x-ln(3/8));
is not running because of ln but I have changed to log. still an error of some operator.
x range of [1, 3]
y2 = (x-1)(log((3^.5)/2)*x-log(3/8));
plot(x,y2)
Thanks.
댓글 수: 0
답변 (1개)
Star Strider
2019년 12월 13일
It is missing a multiplication operator:
y2 = (x-1)(log((3^.5)/2)*x-log(3/8));
↑
Try this:
y2 = (x-1).*(log((3^.5)/2).*x-log(3/8));
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Log Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!