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!