fimplicit3 error: Array sizes must match

Hello everybody!
I have a problem with the function fimplicit3.
I try to plot simple surfaces as x^2 + y^2 - z^2 using two lines of code:
syms x y z
fimplicit3(x^2 + y^2 - z^2)
and no matter wich surface I want to plot it returns me the same error everytime! Even if i try the script in thet MATLAB help section inside the program.
This is the message that i get everytime I try: "Warning: Error updating ImplicitFunctionSurface
Array size must match."
What can I do ? Thanks for your help!

8 件のコメント

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2017 年 3 月 6 日
I tried your code in my machine, it is working fine. Also as a suggestion try to use
fimplicit3(x.^2 + y.^2 - z.^2)
instead of ^2.
Try to run it using a function handle like below
f = @(x,y,z) x.^2 + y.^2 - z.^2;
fimplicit3(f)
Loris Chavée
Loris Chavée 2017 年 3 月 6 日
That still doesn't work! I don't understand...This function worked properly 2 weeks ago and now everything fails!
Walter Roberson
Walter Roberson 2017 年 3 月 6 日
That sort of sudden change can happen sometimes if you accidentally create function with the same name as an internal Mathworks function.
Try using
restoredefaultpath
and then executing your code; if it works then something on your path was the problem.
Loris Chavée
Loris Chavée 2017 年 3 月 6 日
Still the same result.
Walter Roberson
Walter Roberson 2017 年 3 月 6 日
Which MATLAB version are you using?
Loris Chavée
Loris Chavée 2017 年 3 月 6 日
The last one, R2016b
Loris Chavée
Loris Chavée 2017 年 3 月 7 日
Ok I don't know why but now it works! Thanks for your help! I deleted all the functions i created and now it's back to normal!
Karan Gill
Karan Gill 2017 年 3 月 10 日
My guess is that you had already defined x,y, or z so clearing all your variables solved the problem.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePerformance and Memory についてさらに検索

質問済み:

2017 年 3 月 3 日

コメント済み:

2017 年 3 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by