Why is cos_orbit(0,25) not working?
Show older comments
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 Comments
Wanbin Song
on 28 Oct 2015
First of all, cos_orbit is not a matlab built-in function.
Is cos_orbit a function or a script? If the file is script, you should not give the function inputs.
Kameron Gill
on 28 Oct 2015
James Tursa
on 28 Oct 2015
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.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!