phases_yourlogin - function = phases_yourlogin(PctB,temp) %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function [] = phases_yourlogin(PctB,temp) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Programmer(s) and Purdue Email Address(es): % 1. Dr. Matthew Ohland (ohland@purdue.edu) % 2. adapted from an earlier solution by Chell Nyquist % % Section #: ALL % % Assignment #: Homework 4, Problem 5 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Finds the phases present in a binary system given % the mass percent of compound B and the temperature. % % INPUT ARGUMENTS: % PctB mass % of compound B % temp temperature of mixture % OUTPUT ARGUMENTS: % phase_string text phrase describing phases present %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % INPUTS % Validate inputs if nargin ~= 2 fprintf('Two inputs are needed.\n') elseif PctB < 0 | PctB > 100 fprintf('Mass percent of B must be between 0 and 100.\n') else % program continues if no input violations have occurred %---- Input Section ---- meltA = 630;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/02/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue University-West Lafayette.

Page1 / 2

phases_yourlogin - function = phases_yourlogin(PctB,temp) %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online