How to find example file in MATLAB

10 次查看(过去 30 天)
In the Steam Turbine and Governor simulink block documentation page, section Examples states: The power_thermal example illustrates the use of the Steam Turbine and Governor block. I have no idea where to find this power_thermal example in MATLAB. Is this a file, a cathegory, or something else? Where can I locate this example?
Update: when I run power_thermal in the command line, I get Unrecognized function or variable 'power_thermal' error message.

采纳的回答

Raghava S N
Raghava S N 2024-9-5
编辑:Raghava S N 2024-9-5
Hi,
As per the release notes of MATLAB R2023b, starting from MATLAB R2023b, the function “openExample” must be used to open Simscape Electrical Specialized Power Systems example models from the MATLAB Command Window. Please refer to the following link for the release notes which describe in detail how to open the models - https://www.mathworks.com/help/releases/R2024a/sps/release-notes.html?searchHighlight=power_thermal&s_tid=doc_srchtitle#mw_76125a89-2bca-427c-afba-96f459edf95e.
The release notes of MATLAB R2023b also state that the model names of Simscape Electrical Specialized Power Systems example models from MATLAB R2023a have been re-mapped to new names from MATLAB R2023b onwards. For the “power_thermal” model, the new model name is “SteamTurbineandGovernorSystemExample”. Refer to the following link which details the re-mapping of Simscape Electrical Specialized Power Systems example models - https://www.mathworks.com/help/releases/R2024a/sps/release-notes.html?searchHighlight=power_thermal&s_tid=doc_srchtitle#mw_76125a89-2bca-427c-afba-96f459edf95e:~:text=SteamTurbineandGovernorSystemExample.
To launch the “SteamTurbineandGovernorSystemExample” (previously “power_thermal”) example model, use the following command in the MATLAB command window –
openExample('simscapeelectricalsps/SteamTurbineandGovernorSystemExample');
Hope that helps!

更多回答(0 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by