アフィリエイト広告を利用しています

広告

posted by fanblog

2015年05月01日

COURSERAのクラス進捗

COURSERAのコース”Introduction to Programming with MATLAB”がWeek5まで完了!なかなかMATLABが分かってきたかも?残りのWeek6-8でLoopとDatatypeとFileIOを学ぶことになっている。だんだんと宿題が難しくなってきている。十分な時間を使って考えないと簡単には正解にたどり着けない。
宿題の問題の文章が長い!しかもわかりづらい。以下Week5の宿題の1つの問題だが、読んでもなかなか頭に入ってこない。なぜこんな持って回ったような書き方をしているのか…

Consider the definition: function [s1, s2, sums] = sines(pts,amp,f1,f2). The input, pts, is an integer, but amp, f1, and f2 and are not necessarily integers. Output argument s1 is a row vector whose length (number of elements) equals pts. The elements of s1 are the values of the sine function when it is given equally spaced arguments that start at zero and extend through f1 periods of the sine. (Note that we ask for full periods, so if f1 is an integer, both the first and the last element of s1 will be 0 other than a very small rounding error.) The amplitude of the sine wave equals amp. The vector s2 is the same as s1 except that s2 contains f2 periods. The vector sums is the sum of s1 and s2. If f2 is omitted, then it should be set to a value that is 5% greater than f1. If f1 is omitted also, then it should be set to 100. If amp is not provided, then it should default to 1. Finally, if pts is omitted as well, then it should be set to 1000. For example, if you run sines without any input arguments and then you plot the third output argument, sums, the figure should look like this (if you stretch the plot window horizontally):

ただCOURSERAのシステムはよく出来て、Discussion Forumsからいろいろなヒントが見つけられる。いろいろな国籍の人がコメントをしていて面白い。どうしようもないコメントから、きらりと光るコメントまで、ほんと様々。

宿題の問題で指示されている関数を全て作成して、採点機能のあるスクリプトを実行すると自動的に得点が出力されるようになっている。これがゲーム性があり、思わず夢中になってしまう。
ほんとに良く出来ているシステムだ…これで無料だから驚いてしまう。


Homework 5 Grader

Type the number of the problem that you would like to check
or choose the last option to check all problems and compute
a score and a submission code. (Nothing is submitted.)

0. EXIT
1. generationXYZ
2. letter_grade
3. sort3
4. classify
5. older
6. movies
7. sines
8. moving_average
9. ALL PROBLEMS (gives score and submission code)

Your selection: 9
Grading all problems ...

Problem 1 (generationXYZ):
Feedback: Your function performed correctly for argument(s) 1965
Feedback: Your function performed correctly for argument(s) 1966
Feedback: Your function performed correctly for argument(s) 1975
Feedback: Your function performed correctly for argument(s) 1980
Feedback: Your function performed correctly for argument(s) 1981
Feedback: Your function performed correctly for argument(s) 1990
Feedback: Your function performed correctly for argument(s) 1999
Feedback: Your function performed correctly for argument(s) 2000
Feedback: Your function performed correctly for argument(s) 2005
Feedback: Your function performed correctly for argument(s) 2008
Feedback: Your function performed correctly for argument(s) 2012
Feedback: Your function performed correctly for argument(s) 2013
Feedback: Your function performed correctly for argument(s) 2009
Feedback: Your function performed correctly for argument(s) 1993
Feedback: Your function performed correctly for argument(s) 1983

Your solution is correct.

Problem 2 (letter_grade):
Feedback: Your function performed correctly for argument(s) 95
Feedback: Your function performed correctly for argument(s) 91
Feedback: Your function performed correctly for argument(s) 90
Feedback: Your function performed correctly for argument(s) 82
Feedback: Your function performed correctly for argument(s) 81
Feedback: Your function performed correctly for argument(s) 75
Feedback: Your function performed correctly for argument(s) 71
Feedback: Your function performed correctly for argument(s) 70
Feedback: Your function performed correctly for argument(s) 69
Feedback: Your function performed correctly for argument(s) 61
Feedback: Your function performed correctly for argument(s) 60
Feedback: Your function performed correctly for argument(s) 100

Your solution is correct.

Problem 3 (sort3):
Feedback: Your function performed correctly for argument(s) 1, 1, 1
Feedback: Your function performed correctly for argument(s) 1, 1, 2
Feedback: Your function performed correctly for argument(s) 1, 2, 1
Feedback: Your function performed correctly for argument(s) 2, 1, 1
Feedback: Your function performed correctly for argument(s) 1, 2, 3
Feedback: Your function performed correctly for argument(s) 1, 3, 2
Feedback: Your function performed correctly for argument(s) 3, 2, 1
Feedback: Your function performed correctly for argument(s) 3, 1, 2
Feedback: Your function performed correctly for argument(s) 2, 1, 3
Feedback: Your function performed correctly for argument(s) 2, 3, 1
Feedback: Your function performed correctly for argument(s) 5, 1, 9
Feedback: Your function performed correctly for argument(s) -0.689309992672154, -0.262809605838835, 0.17447421737566
Feedback: Your function performed correctly for argument(s) 0.158583018376615, -0.755175650656217, 0.551261328213263

Your solution is correct.

Problem 4 (classify):
Feedback: Your function performed correctly for argument(s) []
Feedback: Your function performed correctly for argument(s) zeros(1,0)
Feedback: Your function performed correctly for argument(s) zeros(0,4)
Feedback: Your function performed correctly for argument(s) 3.14159265358979
Feedback: Your function performed correctly for argument(s) [1 2 3]
Feedback: Your function performed correctly for argument(s) [1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20]
Feedback: Your function performed correctly for argument(s) [1 0 1 1 0;1 1 1 1 0;1 0 0 0 0;1 1 1 1 1;0 1 0 1 1]

Your solution is correct.

Problem 5 (older):
Feedback: Your function performed correctly for argument(s) 1997, 5, 23, 1997, 5, 23
Feedback: Your function performed correctly for argument(s) 1998, 5, 24, 1998, 5, 23
Feedback: Your function performed correctly for argument(s) 1998, 5, 23, 1997, 5, 23
Feedback: Your function performed correctly for argument(s) 1998, 5, 23, 1998, 4, 23
Feedback: Your function performed correctly for argument(s) 2000, 1, 1, 1999, 12, 31
Feedback: Your function performed correctly for argument(s) 2001, 1, 31, 2001, 2, 1
Feedback: Your function performed correctly for argument(s) 1997, 12, 24, 1998, 12, 24
Feedback: Your function performed correctly for argument(s) 1998, 12, 24, 1998, 11, 24
Feedback: Your function performed correctly for argument(s) 1997, 2, 24, 1997, 10, 24
Feedback: Your function performed correctly for argument(s) 1, 1, 1, 1, 1, 1
Feedback: Your function performed correctly for argument(s) 1, 1, 1, 1, 1, 2
Feedback: Your function performed correctly for argument(s) 1, 1, 2, 1, 1, 1
Feedback: Your function performed correctly for argument(s) 1, 1, 31, 1, 2, 1
Feedback: Your function performed correctly for argument(s) 1, 12, 31, 2, 1, 1
Feedback: Your function performed correctly for argument(s) 12, 12, 12, 12, 12, 13
Feedback: Your function performed correctly for argument(s) 1957, 9, 6, 1965, 2, 15
Feedback: Your function performed correctly for argument(s) 1972, 10, 8, 1965, 10, 5
Feedback: Your function performed correctly for argument(s) 1976, 4, 5, 1950, 2, 9
Feedback: Your function performed correctly for argument(s) 1962, 6, 25, 1990, 8, 8

Your solution is correct.

Problem 6 (movies):
Feedback: Your function performed correctly for argument(s) 1, 30, 120, 3, 45, 90
Feedback: Your function performed correctly for argument(s) 1, 30, 120, 3, 0, 90
Feedback: Your function performed correctly for argument(s) 1, 0, 90, 2, 30, 60
Feedback: Your function performed correctly for argument(s) 1, 0, 90, 2, 25, 60
Feedback: Your function performed correctly for argument(s) 1, 0, 90, 2, 55, 75
Feedback: Your function performed correctly for argument(s) 1, 0, 90, 3, 0, 75
Feedback: Your function performed correctly for argument(s) 1, 0, 90, 3, 1, 75
Feedback: Your function performed correctly for argument(s) 10, 10, 60, 11, 5, 120
Feedback: Your function performed correctly for argument(s) 10, 10, 60, 11, 10, 120
Feedback: Your function performed correctly for argument(s) 10, 10, 60, 11, 40, 120
Feedback: Your function performed correctly for argument(s) 10, 10, 60, 11, 41, 120
Feedback: Your function performed correctly for argument(s) 1, 30, 120, 4, 30, 120
Feedback: Your function performed correctly for argument(s) 1, 28, 42, 9, 57, 130
Feedback: Your function performed correctly for argument(s) 11, 4, 73, 8, 40, 55
Feedback: Your function performed correctly for argument(s) 8, 42, 60, 10, 55, 95
Feedback: Your function performed correctly for argument(s) 3, 15, 135, 9, 1, 125
Feedback: Your function performed correctly for argument(s) 4, 41, 105, 1, 4, 30
Feedback: Your function performed correctly for argument(s) 7, 20, 141, 11, 44, 110

Your solution is correct.

Problem 7 (sines):
Feedback: Your function performed correctly for argument(s) 100, 1, 100, 101
Feedback: Your function performed correctly for argument(s) 500, 0.5, 50, 60
Feedback: Your function performed correctly for argument(s) 1000, 5, 150, 148
Feedback: Your function performed correctly for argument(s) 1000, 2, 120
Feedback: Your function performed correctly for argument(s) 1024, 1
Feedback: Your function performed correctly for argument(s) 2048
Feedback: Your function performed correctly for argument(s)

Your solution is correct.

Problem 8 (moving_average):
Feedback: Your function performed correctly for argument 65
Feedback: Your function performed correctly when values 1 - 50 were passed consecutively
Feedback: Your function performed correctly when 3109 consecutive values of a noisy sine wave were passed to it

Your solution is correct.


Score: 100

そして人工知能?関係のクラスが始まる。これも期待している!
”Computational Neuroscience”
この連休中に落としたR関係のクラスをもう一度総復習して、今度はしっかり修了させよう。
posted by itot at 16:11| Comment(0) | TrackBack(0) | COURSERA
この記事へのコメント
コメントを書く

お名前:

メールアドレス:


ホームページアドレス:

コメント:

※ブログオーナーが承認したコメントのみ表示されます。

この記事へのトラックバックURL
https://fanblogs.jp/tb/3610125
※ブログオーナーが承認したトラックバックのみ表示されます。

この記事へのトラックバック
ファン
検索
<< 2016年09月 >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
最新記事
写真ギャラリー
最新コメント
タグクラウド
カテゴリアーカイブ
月別アーカイブ
プロフィール
日別アーカイブ
×

この広告は30日以上新しい記事の更新がないブログに表示されております。