Hello,
I am trying to run function sphere in matlab like this:
sphere(30);
I get an error every time - Error in ==> sph at 1
What am I doing wrong?
Thanks

2 件のコメント

Adam
Adam 2014 年 11 月 18 日
Is sph a function or script of yours?
And does it not give any more information as to what the error is?
Joao
Joao 2014 年 11 月 18 日
i had a previous function named sphere in the same folder. it is now working. thank you

サインインしてコメントする。

 採用された回答

Star Strider
Star Strider 2014 年 11 月 18 日

1 投票

When I run that same ine, I get no errors.
What does:
which sphere -all
return when you run it?
If it returns something other than:
C:\Program Files\MATLAB\R2014b\toolbox\matlab\specgraph\sphere.m
you may have a function that overshadows the built-in sphere function.

その他の回答 (0 件)

カテゴリ

質問済み:

2014 年 11 月 18 日

回答済み:

2014 年 11 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by