Textbooks.elsevier.com - tools for all your teaching needs.

18) Store a number with a decimal place in a double variable (the default). Convert the variable to the type int32 and store the result in a new variable. >> num = 13.45. num = 13.4500 >> intnum = int32(num) intnum = 13 19) Generate a random. real number in the range from 0 to 1. rand. real number in the range from 0 to 20. rand * 20 ................
................