I have written a script quadpoly.m into my current path.After running it,i get the message
'??? Undefined function or variable 'quadpoly'.'
Thereafter i tried 'which quadpoly' and i get the response
' Has no license available '
I am using matlab on the university's server.By the way, the script doesn't depend on any toolbox.

 採用された回答

Qwuasi Moore
Qwuasi Moore 2011 年 7 月 15 日

0 投票

Dear All,
Thank You.One of my functions was named IMSHOW which is a matlab function in image processing toolbox. Since i didn't have Image processing toolbox, it was not recognizing the other functions in the folder.
Remedy : I deleted the function and everything works perfectly now. Thank you.

2 件のコメント

Sean de Wolski
Sean de Wolski 2011 年 7 月 15 日
Please accept your answer to mark this thread closed and so others in the future can easily see the remedy!
Fangjun Jiang
Fangjun Jiang 2011 年 7 月 20 日
Even with that, I am surprised that you will have ' Has no license available ' error when you try to run which command. It has nothing to do with any toolbox.

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

その他の回答 (3 件)

Jan
Jan 2011 年 7 月 13 日

1 投票

If QUADPOLY is a function of a Matlab toolbox, re-using the name can cause such strange problems. An undocumented copyprotection mechanism seems to check filenames...
So if you are sure that you do not use a function whichyou do not have a license for, try to rename the script.

1 件のコメント

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 14 日
I searched the function list on Mathworks website. quadpoly doesn't appear to be in the list.

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

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 13 日

0 投票

I am assuming you are using a shared license. Even when you are in the MATLAB command window, the MATLAB license you got when you started could be timed out. The error indicates that you don't have the license to run the MATLAB which command.
Sean de Wolski
Sean de Wolski 2011 年 7 月 14 日

0 投票

When you open MATLAB is there something in the command window that reads along the lines of:
"Your license will expire in X days" or "Your license has expired please contact your systems admin"?
Before you clc it away? Close MATLAB, restart it and let us know.

カテゴリ

ヘルプ センター および File ExchangeInstall Products についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by