How to open a Simulink example using command

1 view (last 30 days)
I am trying to open a model called "Residential Air Source Heat Pump" from the Simscape Fluids by using the command "sscfluids_residential_air_source_heat_pump". It shows that to run command by entering it in the MATLAB Command Window. However, when I enter it in the MATLAB Command Window, it shows that Unrecognized function or variable 'sscfluids_residential_air_source_heat_pump'. Could anyone can guid me how to open this kind of model by using the MATLAB Command Window?

Answers (1)

Fangjun Jiang
Fangjun Jiang on 22 Jul 2022
Most likely, you don't have the toolbox installed. Or, if installed, the path is not correctly set. Try these two commands in your MATLAB to see what returns.
ver fluids
----------------------------------------------------------------------------------------------------- MATLAB Version: 9.12.0.2006483 (R2022a) Update 3 MATLAB License Number: Operating System: Linux 5.4.185-0504185-generic #202203160950 SMP Wed Mar 16 14:00:16 UTC 2022 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode ----------------------------------------------------------------------------------------------------- Simscape Fluids Version 3.4 (R2022a)
which sscfluids_residential_air_source_heat_pump
/MATLAB/toolbox/physmod/sh/shdemos/sscfluids_residential_air_source_heat_pump.slx

Community Treasure Hunt

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

Start Hunting!

Translated by