I am trying to learn MATLAB with MIT OCW and I am running into some trouble.(adsbygoogle = window.adsbygoogle || []).push({});

It says as an assignment:

cMat = a 10x10 matrix where the vector 1:100 runs down the columns (use reshape).c.

so

1 11 21.....91

2.............92

. ..............

10...........100

is the matrix I am trying to make and another exercise says

Make fMat be a 5x3 matrix of random integers with values on the range -3 to 3 (use rand and floor or ceil)f.

I am not sure how it wants me to go about these, thanks for any help. The course link is listed below.

http://ocw.mit.edu/courses/electric...oduction-to-matlab-january-iap-2010/index.htm

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB MATLAB trouble with reshape and random matricies

**Physics Forums | Science Articles, Homework Help, Discussion**