Q:

Create a set of random matrix variables with descriptive names (e.g. ran2by2int, ran3by3double, etc.) for use when testing matrix functions. Store all of these in a MAT-file

0

Create a set of random matrix variables with descriptive names (e.g. ran2by2int, ran3by3double, etc.) for use when testing matrix functions. Store all of these in a MAT-file.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> clear

>> ran2by2int = randi([0,100], 2,2);

>> ran3by3int = randi([0,100], 3,3);

>> ran2by2double = rand(2,2)*100;

>> ran3by3double = rand(3,3)*100;

>> save randtestmat

>> load randtestmat

>> ran2by2int

ran2by2int =

 71 27

 3 4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now