Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

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

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

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question