Hello. I have completed this assignment for you before I bid. If you accept me for the project, I'll send you the Matlab files.
My approach to solving this was to convert everything into mol, m^3, K, and Pa units. Then I plugged everything into the equations given and let Matlab solve for the unknown value T. This gave me an answer of T=314.8316 K. I am not sure if I used the correct units, but the Matlab code 100% works (and I can change the units if you tell me to) and 315 Kelvin is a reasonable answer.
The other thing I was unsure of was whether or not Tc, pc, and w should be function inputs in Matlab or should just be constant values in the function. I let them be function inputs so that you can change the values when calling the function, but I can very easily make the variables constants in the function if you want me to.
Hope to hear from you soon. Regards,
Christopher Andrews (andrewscm)