MATLAB Answers

Matlab is showing the following error -'Unrecognized function or variable 'importPhase'.'

27 views (last 30 days)
Rahul Suman
Rahul Suman on 3 Aug 2020
Commented: Dalisizwe Sibanda on 30 Aug 2020
I am using Cantera (2.4.0) through Matlab (2020a). I have followed the instructions given here https://cantera.org/install/windows-install.html to install cantera and configure matlab to use it .
I am a new user to both matlab and cantera and wanted to try some basic tutorials given ,but when I entered the following code ,
gas1 = importPhase('gri30.cti', 'gri30');
msg = sprintf('time to create gas1: %f', cputime - t0)
Matlab showed an error saying ,'Unrecognized function or variable 'importPhase'.
Other answers suggest improperly specifying path to the matlab could result in this ,but i have followed all the instructions in the installation guide.
Any help would be appreciated

  1 Comment

Dalisizwe Sibanda
Dalisizwe Sibanda on 30 Aug 2020
Hi Rahul, were you ever able to sort out the issue with Cantera? I am trying to use it with T-MATS, but have not to get things working at all. If you could share hot ot fix the problem it would be such a huge help.

Sign in to comment.

Answers (1)

Abhishek Gupta
Abhishek Gupta on 26 Aug 2020
Hi Rahul,
As per my understanding, you are encountering an error message, while accessing Cantera package.
Referring to the following link, which might help you in resolving the issue:-
Regards,
Abhishek Gupta

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!