Statistics Homework Help

1) In chemistry, the pH of an aqueous solution is a measure of its acidity.A solution with a pH of 7 is said to

1) In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic. we need a vector of structures with various solutions and their pH values. and need a function that will determine acidity. Add another field to every structure for this.

mysol(3)=struct(‘name’,’bleach’,’PH’,12);

mysol(1)=struct(‘name’,’juice’,’PH’,5);

mysol(2)=struct(‘name’,’milk’,’PH’,7);

function acidity=deter(mysol)

for i=1:length(mysol)

   if mysol(i).PH

       mysol(i).acidity=’acidic’;

   elseif mysol(i).PH==7

       mysol(i).acidity=’neutral’;

   elseif mysol(i).PH>7

       mysol(i).acidity=’basic’;

   end

end

end

Can someone please tell me where i got it wrongjQuery22402895685611183094_1571272908984