EES Matlab interface?

Can someone give me a point by point on how to use the EES in the Matlab, please?

Answers (1)

Dhananjay Kumar
Dhananjay Kumar on 17 Feb 2020

0 votes

See if this helps:

1 Comment

function [v,h] =Volume( fluid,T,P)
EESInput='FromMatlab.txt';
EESOutPut='ToMatlab.txt';
propinfo={fluid T P};
fid=fopen(EESInput,'W');
fprintf(fid,'%s %d %d',propinfo{:});
fclose(fid);
system (' C: \EES32 \EES.exe C:\Program Files\MATLAB\R2016b\bin\volume.ees /solve' );
v=dlmread(EESOutPut)
end
---------------------------------------------------------------------------

Sign in to comment.

Categories

Find more on Simscape Fluids in Help Center and File Exchange

Asked:

on 15 Feb 2020

Commented:

on 5 Apr 2020

Community Treasure Hunt

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

Start Hunting!