Why is cos_orbit(0,25) not working?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kameron Gill
am 28 Okt. 2015
Beantwortet: Geoff Hayes
am 28 Okt. 2015
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 Kommentare
James Tursa
am 28 Okt. 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.
Akzeptierte Antwort
Geoff Hayes
am 28 Okt. 2015
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Time Series Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!