Strange "solve" error and undefined "vpasolve"

12 次查看(过去 30 天)
Hi,
When trying to use the "solve" function for one of the doc examples it only returns the sym variable. It doesn't even solve the equation x+1==0, when using the syntax:
syms x
solvex=solve(x+1==0,x)
it only returns solvex=x. Even worse, it does not even recognize vpasolve as a function and gives the error: "Undefined function or variable 'vpasolve'". Any help would be greatly appreciated.
/Philip
  2 个评论
Walter Roberson
Walter Roberson 2018-11-3
Is it possible that at some point you installed the Maplesoft MATLAB Connector, which is an interface that permits MATLAB to call into Maple ?

请先登录,再进行评论。

采纳的回答

Star Strider
Star Strider 2018-11-3
This may be a path problem.
Try typing these either in your Command Window or a script:
restoredefaultpath
rehash toolboxcache
If that does not solve your problem, request Tech Support through the Contact Us link at the top right corner of this page.
  4 个评论
Francisco Lopes
Francisco Lopes 2023-1-26
编辑:Francisco Lopes 2023-1-26
I solved this kind of problem using:
syms z
before the solver command.
Ex.:
syms z
Sol = solve(fA == 0, fB == 0);
Justifying: Matlab needs treat z symbolic in order to handle the different solutions.

请先登录,再进行评论。

更多回答(1 个)

MohammadMahdi MovahedFar
编辑:MohammadMahdi MovahedFar 2025-4-22

You should write:

S = vpasolve(...)

Without assignment it won't work.

  2 个评论
Walter Roberson
Walter Roberson 2025-4-22
The original problem was that the user had installed the Maplesoft Maple symbolic interface, which does not define a function named vpasolve . Requiring output for an undefined function does not fix the problem that the function is undefined.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by