Problem with answer 15.2 Creating and Calling Functions: (4/6) Create and Call a Function, task 1 MATLAB Fundamentals
이전 댓글 표시
The problem asks us to modify the function call using two inputs. I put the answer as follows:
top5 = getLargestN(x,5)
i get a message 'error using exercise>getLargestN too many input arguments'.
The answer i solution is identical to one I gave. How do I move forward here?
채택된 답변
추가 답변 (5개)
Sanket
2022년 11월 4일
5 개 추천
y0 = 0.4;
yline(y0)
tzerox = findcrossing(t,x-y0)
tzeroy = findcrossing(t,y-y0)
Bhavesh Pawar
2022년 3월 11일
y0 = 0.4;
yline(y0)
tzerox = findcrossing(t,x,y0)
tzeroy = findcrossing(t,y,y0)
댓글 수: 5
Oguz Tan
2022년 4월 3일
The real solution is different than the solution which the course gives.
y0 = 0.4;
yline(y0)
tzerox = findcrossing(t,x-y0)
tzeroy = findcrossing(t,y-y0)
Jorge Luis Argel Pacheco
2022년 10월 22일
gracias
Jorge Luis Argel Pacheco
2022년 10월 22일
esa tampoco es
Enes Çelik
2022년 12월 1일
Thank you so much Oguz!
Lester
2023년 10월 9일
Thank you, the code helped me.!
Mohamed Housni
2024년 6월 10일
y0 = 0.4;
yline(y0)
tzerox = findcrossing(t,x-y0)
tzeroy = findcrossing(t,y-y0)
Joed Blair Jacalan
2023년 8월 12일
0 개 추천
- Modify the definition of the findcrossing function so that it takes a third input z.
- Add a new line to the beginning of the function:y = y - z;
- In the Task 1 section of the script, change the value of y0 to 0.4.
- Modify the two calls to findcrossing to add y0 as an input.
You can use the graph to check that the returned values of t are correct (x(t) = 0.4 and y(t) = 0.4)
Midhunprabu
2024년 12월 26일
0 개 추천
Then modify the command for Task 1 so that r has a value of 0.5.
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!