constantly receiving an error undefined function or variable z

No matter what I type into MATLAB, I receive an error:
Undefined function or variable z
This error initially occurred after I tried to define:
>> z=2
(z did not appear in my workspace)
Now it occurs even when I try things that do not include a 'z':
>> 2*2
>> x=2
>> restoredefaultcache
>> rehash toolboxcache

 采纳的回答

Restart MATLAB to clear any association with the function or variable 'z'.

更多回答(0 个)

类别

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by