Hi guys, I'm trying to plot this function on matlab but it isn't working as it should.
The function is: Hj-SsrpFS0C4huXdg2l49Q.png
2io6pLTzTviO5_C1txetyQ.png
I think I'm doing something wrong with the eulers or idk. Please help

댓글 수: 3

Walter Roberson
Walter Roberson 2019년 10월 12일
Unfortunately the content of the images did not make it.
Note: it is easier for people to work with code as text instead of with pictures of code.
x=-10:0.1:10;
y=1500*exp(x)-2264+475*((exp(x)-1)/x);
plot(x,y)
That is the code. What do you mean with the content of the images did not make it? I can see the images.
The function I try to plot is
f(x)=1500*e^x+475*(e^x-1)/x-2264
Walter Roberson
Walter Roberson 2019년 10월 12일
To us, what shows up instead of images is:
The function is: Hj-SsrpFS0C4huXdg2I49Q.png
I can see that that is actually a reference to an image on prtscr.com but when I go to visit the image I am told "403 forbidden". I would guess that the images are set to private.

댓글을 달려면 로그인하십시오.

 채택된 답변

the cyclist
the cyclist 2019년 10월 12일
편집: the cyclist 2019년 10월 12일

0 개 추천

The images you posted don't show up for me, either.
Your code ran for me, and yielded this figure:
I think you might have wanted
x=-10:0.1:10;
y=1500*exp(x)-2264+475*((exp(x)-1)./x);
plot(x,y)
Note that I added a dot to the division sign, to make it an element-wise.

댓글 수: 1

David Rojas
David Rojas 2019년 10월 12일
Oh yes, now it is working with the dot. Thanks dude :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

질문:

2019년 10월 12일

댓글:

2019년 10월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by