Matlab App Designer
Matlab App Designer
After runing, the code, this is how the data will be read into the workspace; However, this comes with the warning below it,
and this is beacause, the properties in the exel file are “Density(Kg/m3), Viscosity(mpa-s), Cp(KJ/Kg-K)” which were changed to
the above. This can be corrected by reading the table as “data=readtable(‘Book.xlsx’, ‘VariableNamingRule’, ‘preserve’). But
lets use the modified(properties) form as in the figure above
3.0 Transforming The Task into a Code
if the “T” doesn’t contain a value exactly as the specified “Ti”, the
app then use “input_temp” to make sure the Ti is in the T range(1 -
90) . It then estimate the index of that value(Ti), mostly 2 using “idx”,
and extract the T range(temp_range) in which that value falls, by
taking the immidiate T values above and below it as the Tmin with
index (idx) 1 and Tmax with index 3. Using “Spp_range” to take their
corresponding property values and interpolate (f) to get the SPP
value. finally, it displays it on the SPP edit field. Repeating the above
procedure for the rest of the properties will meeet the requirements
above. Note, the “interp1” is an inbuild matlab funtion that works
exactly as the eqution provided in the question.
3.0 Transforming The Task into a Code Cont’d
THANK YOU