Undefined Function or Variable

3 次查看(过去 30 天)
Martin Harris
Martin Harris 2017-12-2
Hi, I keep trying to open online examples for Matlab 2017a however when entering the example into the command section I either ger "Undefined Function or Variable" or I get a "error" message. Is this because the examples are from a newer version or do these examples require add on purchases? Regards, Martin
  1 个评论
Jan
Jan 2017-12-2
Please post any details: The code and the complete error message. What exactly do you call "command section"? Usually the code should run in the internet browser without problems.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2017-12-2
None of the examples in themselves require add-on purchases, but the examples might make use of add-on Toolboxes that would have to be licensed and installed.
Also, the documentation you would normally be looking at online is for R2017b at the moment, so some of the functions and examples might be newer than your system.
If you give an example of one that does not work for you, we will tell you what is needed to run it.
  2 个评论
Martin Harris
Martin Harris 2017-12-5
Hi,
I am having problems with opening the following examples:
sh_water_supply_system
openExample('fuzzy_featured/fuzzytankdemo')
sh_pump_fixed_disp
Kind regards
Martin
Walter Roberson
Walter Roberson 2017-12-5
sh_water_supply_system has been at toolbox/physmod/sh/shdemos/sh_water_supply_system.slx since R2013a or possibly earlier. That is part of Simscape Fluids (previously known as SimHydraulics I think it was.)
sh_pump_fixed_disp is at toolbox/physmod/sh/shdemos/sh_pump_fixed_disp.slx which is part of the same toolbox. It appears to have been new as of R2016a (or had a different name before.)
R2017a (I think it was) was the first release to use openExample(), and the examples also moved directories when that happened. In older versions the fuzzy tank demo file is at
toolbox/fuzzy/fuzdemos/fuzzytankdemo.m
which is part of the Fuzzy Logic toolbox. As of R2016a it moved to examples/fuzzy_featured/fuzzytankdemo.m under matlabroot

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by