Function not defined but it is in fact defined
8 ビュー (過去 30 日間)
古いコメントを表示
function [fortynines,sevens,ones]=converttobase7(x) fortynines = floor((x)/(7^2)); sevens = floor((fortynines)/(7^1)); ones = floor((x)-(7^2));
0 件のコメント
回答 (1 件)
John D'Errico
2018 年 10 月 8 日
Did you actually save it as an m-file?
Is it saved to your search path? NOT saved in one of the MATLAB supplied directories?
By the way, it has several bugs in it anyway, so it won't compute a correct base 7 result. But that is irrelevant at the moment, since you are not even to the point of running the code.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dynamic System Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!