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

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. real number in the range from 20 to 50. rand*(50-20)+20. integer in the range from 0 ... ................
................