fix(X) rounds the elements of X to the nearest integer towards zero. E.g. fix(1.6) will return the integer '1'. The Prof. used the function to illustrate one method of generating random integers. However, you should use the 'randi' function for this purpose.
Is there any way to access every quiz as well as every homework questions & solutions without enrolling to the course on coursera.org. Does the textbook given from the link in the description have the questions??
I typed in rand and I got the exact same number (0.8147), that was creepy, but it became more creepier when I also entered "1+10*rand(5,4)", and my 3rd column was the exact same column as the 1st column in the video. Seems like random isn't that random after all?
When I play these as 1.25 or 1.5 speed it seems pretty normal and prevents me from wasting my time!
Why did you type fix? I still did not understand its function.
fix(X) rounds the elements of X to the nearest integer towards zero. E.g. fix(1.6) will return the integer '1'. The Prof. used the function to illustrate one method of generating random integers. However, you should use the 'randi' function for this purpose.
@@Hans-pc1vc Correct ! This MATLAB fucntion seems pretty familiar to me.. Isn't the same as the ''Integer Part'' function that we use in Maths ?
@@Hans-pc1vc what does ceil(X) do then?can u explain please?
Is there any way to access every quiz as well as every homework questions & solutions without enrolling to the course on coursera.org. Does the textbook given from the link in the description have the questions??
Textbook has its own questions not the quizzes in the course.
I typed in rand and I got the exact same number (0.8147), that was creepy, but it became more creepier when I also entered "1+10*rand(5,4)", and my 3rd column was the exact same column as the 1st column in the video. Seems like random isn't that random after all?
+Squiderify Oh I didn't watch till the end of the video. :D
@@Squiderify XD