Hello,
I was running a command
syms x y
And Matlab returns an error: Undefined function 'sym' for input arguments of type 'char'
It didn't happen before. And I'm using a student version. Any suggestion? Thanks alot.

 採用された回答

Star Strider
Star Strider 2014 年 12 月 14 日

30 投票

‘It didn’t happen before’ on the same computer or a different computer?
To see what Toolboxes you have installed, in the Command Window, type:
ver
If you have the Symbolic Math Toolbox installed, it should be listed.
If it is, and you’re still getting the error, type these commands in the Command Window:
restoredefaultpath
rehash toolboxcache
If that doesn’t work, contact MathWorks Technical Support.

10 件のコメント

Star Strider
Star Strider 2014 年 12 月 14 日
Mi’s ‘Answer’ is cloned here:
Thanks. I am not able to check it now. You are right that I am using a different computer. If I don't have the toolbox how do I install one?
Star Strider
Star Strider 2014 年 12 月 14 日
I am not certain how university licenses work, so contact the person who administers your university MATLAB license to see if you can download it or access it through your university license.
Otherwise, you have to buy it from MathWorks, then download and install it to add it to your current MATLAB installation.
milad hasani
milad hasani 2018 年 11 月 2 日
Thanks. it's worked.
Star Strider
Star Strider 2018 年 11 月 2 日
My pleasure.
Thank you for voting for it!
Mohammed Sobhy
Mohammed Sobhy 2021 年 12 月 25 日
Thank you, this solved the same problem that I countered.
Star Strider
Star Strider 2021 年 12 月 25 日
Mohammed Sobhy —
My pleasure!
Thank you for voting for it!
Brian White
Brian White 2024 年 3 月 18 日
Thanks! This fixed it.
Star Strider
Star Strider 2024 年 3 月 18 日
@Brian White — My pleasure!
Sakshi
Sakshi 2024 年 4 月 19 日
Hey I observed that I can't run this commands in online matlab, is there any other way?
I kinda have to use online matlab rn for my hackathon.
Star Strider
Star Strider 2024 年 4 月 19 日
@Sakshi — You shouldn’t need to run these:
restoredefaultpath
rehash toolboxcache
in MATLAB Online. If you’re having problems with MATLAB Online, Contact Support and tell them you’re having a problem with it.
You should have access to the Symbolic Math Toolbox in MATLAB Online if you have it licensed and installed on your personal computer. (I don’t know how this works with university licenses, if that’s what you have. You’ll have to ask your administrator about that.)

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

その他の回答 (5 件)

Mi
Mi 2014 年 12 月 14 日

0 投票

Thanks. I am not able to check it now. You are right that I am using a different computer. If I don't have the toolbox how do I install one?

2 件のコメント

John D'Errico
John D'Errico 2014 年 12 月 14 日
Please don't add answers when you have a followup question. CLICK ON THE COMMENT BUTTON.
Mi
Mi 2014 年 12 月 18 日
Thanks.

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

Hamza saeed khan
Hamza saeed khan 2020 年 11 月 24 日

0 投票

what if sysm word not working in matlab what to do?

2 件のコメント

Steven Lord
Steven Lord 2020 年 11 月 25 日
That suggests that you don't have Symbolic Math Toolbox installed, you don't have it in your license, or all the licenses for it are currently checked out. To check the first look at the output of ver. To check the latter two you may need to contact your license administrator.
If you don't have it installed but you have a license for it, use Add-On Explorer to install it.
If you don't have it in your license, buy it.
If you have it installed and licensed but it's still not working, please show the full and exact text of any error and/or warning message you receive (all the text displayed in red or orange in the Command Window) when you try to use it.
Walter Roberson
Walter Roberson 2020 年 11 月 25 日
From time to time it means that you have a corrupted Symbolic Toolbox and need to reinstall.
Also if some symbolic functions work but not others then sometimes the problem has to do with having the Maplesoft "MATLAB Connector" installed to communicate with the Maple software package.

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

Giovanny Steven Sandoval Montoya
Giovanny Steven Sandoval Montoya 2021 年 7 月 20 日

0 投票

I have problems with "syms".
Error in Validacion (line 24)
syms T1
If I don't have the toolbox how do I install one?
Khalil
Khalil 2023 年 2 月 23 日

0 投票

Undefined function 'Matlab' for input arguments of type 'char'.

1 件のコメント

Walter Roberson
Walter Roberson 2023 年 2 月 23 日
you would get that error if you had a line of code that looked like
Matlab is secretly many fast hamsters.
That is, the first word of the expression is Matlab and you had some text following. Such as if you forgot to put in a % comment symbol

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

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

質問済み:

Mi
2014 年 12 月 14 日

コメント済み:

2024 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by