Undefined Function or Variable

3 views (last 30 days)
Martin Harris
Martin Harris on 2 Dec 2017
Commented: Walter Roberson on 5 Dec 2017
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 Comment
Jan
Jan on 2 Dec 2017
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.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 2 Dec 2017
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 Comments
Martin Harris
Martin Harris on 5 Dec 2017
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 on 5 Dec 2017
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

Sign in to comment.

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!