whats wrong in this function?
Hi:)
When I call the attached function with for instance best_salt_1=’ZnBr2′ and best_salt_2=’MgCl2′ and temperatur_1 = 40, I get this error saying:
Output argument "massetetthet_MgCl2" (and maybe others) not assigned during call to "beregn_massetetthet_mettetsaltlosning".
I dont understand I have set all the variables after each if block to something…and I know a similar function has worked for me earlier.Hi:)
When I call the attached function with for instance best_salt_1=’ZnBr2′ and best_salt_2=’MgCl2′ and temperatur_1 = 40, I get this error saying:
Output argument "massetetthet_MgCl2" (and maybe others) not assigned during call to "beregn_massetetthet_mettetsaltlosning".
I dont understand I have set all the variables after each if block to something…and I know a similar function has worked for me earlier. Hi:)
When I call the attached function with for instance best_salt_1=’ZnBr2′ and best_salt_2=’MgCl2′ and temperatur_1 = 40, I get this error saying:
Output argument "massetetthet_MgCl2" (and maybe others) not assigned during call to "beregn_massetetthet_mettetsaltlosning".
I dont understand I have set all the variables after each if block to something…and I know a similar function has worked for me earlier. matlab, strcmpi, if blocks MATLAB Answers — New Questions









