Function not defined but it is in fact defined

function [fortynines,sevens,ones]=converttobase7(x) fortynines = floor((x)/(7^2)); sevens = floor((fortynines)/(7^1)); ones = floor((x)-(7^2));

Respuestas (1)

John D'Errico
John D'Errico el 8 de Oct. de 2018

0 votos

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.

Categorías

Más información sobre Specialized Power Systems en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Oct. de 2018

Respondida:

el 8 de Oct. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by