Why is cos_orbit(0,25) not working?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, in my book it said to run cos_orbit(0,25) to get a specific graph. I try to run this code and i get this error
>> cos_orbit(0,25) Attempt to execute SCRIPT cos_orbit as a function: C:\Users\MyNamehere\Documents\MATLAB\cmpe8\hw3\cos_orbit.m
댓글 수: 3
James Tursa
2015년 10월 28일
Please post your cos_orbit.m and then we can advise how to turn your apparent script into a function that can be called with input arguments.
채택된 답변
Geoff Hayes
2015년 10월 28일
Kameron - your assignment is telling you to create a function called cos_orbit that has two inputs, x and N. With that in mind, the first line of your cos_orbit.m file should be
function cos_orbit(x,N)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!