新規記事の投稿を行うことで、非表示にすることが可能です。
2016年09月19日
コンピュータ投資
COURSERAで”Computational Investing, Part I”というコンピュータを使った投資に関する講義が2016年の9月24日から8週間に渡って行われるようだ。
https://www.coursera.org/learn/computational-investing
自分の学習記録を見ると、2013年に同じコース名・講師の授業を受講しているが非常に質が高いものであったと記憶している。シラバスによると、主にPythonを使ってポートフォリオの評価・最適化に重点を置いているようだが、後半になるとテクニカル解析やMachine Learningなども扱うようだ。
これは必ず受講しよう!
https://www.coursera.org/learn/computational-investing
自分の学習記録を見ると、2013年に同じコース名・講師の授業を受講しているが非常に質が高いものであったと記憶している。シラバスによると、主にPythonを使ってポートフォリオの評価・最適化に重点を置いているようだが、後半になるとテクニカル解析やMachine Learningなども扱うようだ。
これは必ず受講しよう!
【このカテゴリーの最新記事】
-
no image
-
no image
-
no image
-
no image
2016年09月16日
トレーディングパソコンの購入
システム開発は全く進んでいないが、トレーディング手法を研究するためにトレーディング用にカスタマイズされたパソコンを購入した。具体的には、パソコン工房が販売しているマルチモニタ対応のkabuパソだ。モニタ数は6画面とし、CPU、SSD、メモリのスペックを標準のものからアップグレードした。商品の構成は以下の通り。
【商品ID】578880
【商品名】PRO-kabu.6
-----------------------------------------------------------
【下取りキャンペーン】下取りキャンペーンなし
【サービス】【ご自宅にお伺いします】 専門スタッフによる出張初期導入作業(設置・各種設定)実施 [基本構成]
【プリインストールソフト】トップトレーダー仕様の「kabuステーション��」用レイアウト・プリインストール
【OS】Windows 10 Pro 64ビット(DSP)
【表計算・ワープロソフトウェア】なし
【引越しソフトウェア】ファイナルパソコン引越しWIN10特別版(専用USBリンクケーブル付き) / [データも、設定も、ソフトもカンタン引越し]
【プロセッサー】インテル(R) Core i7-6700K プロセッサー (4.0-4.2GHz/4コア/8スレッド/8MBキャッシュ/TDP95W)
【CPU冷却グリス】標準グリス
【CPUクーラー】標準(リテール)クラスCPUクーラー [トップフロー]
【メインメモリ】【厳選メモリ】DDR4-2133 8GB×4(デュアルチャンネル/計32GB)
【2.5インチSSD[OSインストール]】500GB SSD [Samsung 850 EVOシリーズ] / [機能性に優れるハイスピードモデル]
【3.5インチHDD[データ用]】1TB HDD / 3.5インチ Serial-ATA
【増設3.5インチHDD[1台目]】なし
【光学式ドライブ】DVDスーパーマルチドライブ [LG GH24NSxx]
【チップセット】インテル(R) Z170 Express チップセット [ASUS Z170M-PLUS]
【グラフィックアクセラレーター】NVIDIA(R) GeForce GT 730 1GB DDR3 [HDMI×4]
【グラフィックアクセラレーター[セカンド]】インテル(R) HD Graphics 530(CPU統合グラフィックス)
【電源】500W [80PLUS GOLD認証] / ATX電源 [高変換効率]
【ケース】ミニタワーMicroATXケース IN-WIN EM040 [フロントUSB3.0] ブラック
【サウンド機能】 High Definition Audio subsystem
【スピーカー】2.1chスピーカー [Logicool Multimedia Speakers Z150BK ] / [クリアでパワフルなサウンド]
【ヘッドフォン】なし
【ヘッドセット】なし
【WEBカメラ】なし
【キーボード・マウス セット】【超小型レシーバーを備えるワイヤレスキーボードマウス】Logicool Wireless Combo MK275
【マウスパッド】なし
【ペンタブレット】なし
【液晶モニター】【21.5ワイド (フルHD/1920×1080) 】iiyama ProLite E2280HS ×6台[ノングレア/スピーカーあり]
【映像出力ケーブル】HDMIケーブル:3m×5本 / DVI-Dケーブル:3m×1本
【モニタアーム・モニタスタンド】横3画面2段タイプ [モニタアーム・スタンド式] / [〜24型対応] [各6kg×6]
【プリンター】なし
【電源タップ】電源タップT-Y3A-2720WH(2P式7個口/抜け止め付)×1、結束バンドLD-T140WH30(14cm)×30本
【保証】1年間無償保証
【PCリサイクル】家庭系パソコン(PCリサイクル料金込み、回収再資源化料金不要)
【商品ID】578880
【商品名】PRO-kabu.6
【数量】1
【単価】 ¥371,390(税込)
【小計】 ¥371,390(税込)
-----------------------------------------------------------
【商品代金合計】 ¥371,390(税込)
【配送料合計】 ¥2,160(税込)
【ポイント利用】▲¥200
===============================
【合計金額】 ¥373,350(税込)
===============================
しめて373350円。痛い出費だが、これで研究のペースを上げていこう。。。
これを置く机も必要か。この9月の連休を上手く使って準備を進めていこう。
【商品ID】578880
【商品名】PRO-kabu.6
-----------------------------------------------------------
【下取りキャンペーン】下取りキャンペーンなし
【サービス】【ご自宅にお伺いします】 専門スタッフによる出張初期導入作業(設置・各種設定)実施 [基本構成]
【プリインストールソフト】トップトレーダー仕様の「kabuステーション��」用レイアウト・プリインストール
【OS】Windows 10 Pro 64ビット(DSP)
【表計算・ワープロソフトウェア】なし
【引越しソフトウェア】ファイナルパソコン引越しWIN10特別版(専用USBリンクケーブル付き) / [データも、設定も、ソフトもカンタン引越し]
【プロセッサー】インテル(R) Core i7-6700K プロセッサー (4.0-4.2GHz/4コア/8スレッド/8MBキャッシュ/TDP95W)
【CPU冷却グリス】標準グリス
【CPUクーラー】標準(リテール)クラスCPUクーラー [トップフロー]
【メインメモリ】【厳選メモリ】DDR4-2133 8GB×4(デュアルチャンネル/計32GB)
【2.5インチSSD[OSインストール]】500GB SSD [Samsung 850 EVOシリーズ] / [機能性に優れるハイスピードモデル]
【3.5インチHDD[データ用]】1TB HDD / 3.5インチ Serial-ATA
【増設3.5インチHDD[1台目]】なし
【光学式ドライブ】DVDスーパーマルチドライブ [LG GH24NSxx]
【チップセット】インテル(R) Z170 Express チップセット [ASUS Z170M-PLUS]
【グラフィックアクセラレーター】NVIDIA(R) GeForce GT 730 1GB DDR3 [HDMI×4]
【グラフィックアクセラレーター[セカンド]】インテル(R) HD Graphics 530(CPU統合グラフィックス)
【電源】500W [80PLUS GOLD認証] / ATX電源 [高変換効率]
【ケース】ミニタワーMicroATXケース IN-WIN EM040 [フロントUSB3.0] ブラック
【サウンド機能】 High Definition Audio subsystem
【スピーカー】2.1chスピーカー [Logicool Multimedia Speakers Z150BK ] / [クリアでパワフルなサウンド]
【ヘッドフォン】なし
【ヘッドセット】なし
【WEBカメラ】なし
【キーボード・マウス セット】【超小型レシーバーを備えるワイヤレスキーボードマウス】Logicool Wireless Combo MK275
【マウスパッド】なし
【ペンタブレット】なし
【液晶モニター】【21.5ワイド (フルHD/1920×1080) 】iiyama ProLite E2280HS ×6台[ノングレア/スピーカーあり]
【映像出力ケーブル】HDMIケーブル:3m×5本 / DVI-Dケーブル:3m×1本
【モニタアーム・モニタスタンド】横3画面2段タイプ [モニタアーム・スタンド式] / [〜24型対応] [各6kg×6]
【プリンター】なし
【電源タップ】電源タップT-Y3A-2720WH(2P式7個口/抜け止め付)×1、結束バンドLD-T140WH30(14cm)×30本
【保証】1年間無償保証
【PCリサイクル】家庭系パソコン(PCリサイクル料金込み、回収再資源化料金不要)
【商品ID】578880
【商品名】PRO-kabu.6
【数量】1
【単価】 ¥371,390(税込)
【小計】 ¥371,390(税込)
-----------------------------------------------------------
【商品代金合計】 ¥371,390(税込)
【配送料合計】 ¥2,160(税込)
【ポイント利用】▲¥200
===============================
【合計金額】 ¥373,350(税込)
===============================
しめて373350円。痛い出費だが、これで研究のペースを上げていこう。。。
これを置く机も必要か。この9月の連休を上手く使って準備を進めていこう。
2016年09月11日
システム開発迷走中
2016年05月30日
Introduction to Programming with MATLAB Lesson 4
COURSERAのクラスでMATLABの復習を継続中。今週のテーマはProgrammer's Toolboxということで、MATLABの行列演算の方法、入出力、グラフプロット、デバッギングを学んだ。
宿題の中でちょっと手こずったのが、以下の問題。
*** Write a function called reverse_diag that creates a square matrix whose elements are 0 except for 1s on the reverse diagonal from top right to bottom left. The reverse diagonal of an n-by-n matrix consists of the elements at the following indexes: (1, n), (2, n-1), (3, n-2), … (n, 1). The function takes one positive integer input argument named n, which is the size of the matrix, and returns the matrix itself as an output argument. Note that using the built-in functions eye and diag are not allowed. (Hint: you can index into a matrix with a single index and MATLAB will handle it as if it was a vector using column-major order. Note that the grader will not test for n = 1, but try to solve it for that case too.)
Hintがあるが、この意味がわからない。クラスのDiscussionページを見ると、このHintの意味を質問している人が!そしてその回答は、以下のような行列操作を意味しているとのこと。
>> A = [1,2,3; 4,5,6; 7,8,9]
A =
1 2 3
4 5 6
7 8 9
>> A(3,2)
ans =
8
>> A(6)
ans =
8
>> A(2:5)
ans
4
7
2
5
なるほどと試してみると、たった2行のスクリプトで書けてしまうではないか!これは覚えておきたいテクニック。Lesson4を無事完了。
Homework 4 Grader (v4.16.7.5)
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. intquad
2. sindeg
3. simple_stats
4. odd_rms
5. fence
6. zero_stat
7. reverse_diag
8. sum3and5muls
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (intquad):
Feedback: Your function performed correctly for argument(s) 2, 3
Feedback: Your function performed correctly for argument(s) 4, 4
Feedback: Your function performed correctly for argument(s) 1, 5
Feedback: Your function performed correctly for argument(s) 3, 1
Feedback: Your function performed correctly for argument(s) 1, 1
Feedback: Your function performed correctly for argument(s) 5, 2
Feedback: Your function performed correctly for argument(s) 5, 5
Feedback: Your function performed correctly for argument(s) 5, 1
Feedback: Your function performed correctly for argument(s) 4, 5
Feedback: Your function performed correctly for argument(s) 3, 4
Feedback: Your function performed correctly for argument(s) 5, 5
Your solution is correct.
Problem 2 (sindeg):
Feedback: Your function performed correctly for argument(s) [0 90 180]
Feedback: Your function performed correctly for argument(s) [30 60;90 120]
Feedback: Your function performed correctly for argument(s) 180
Feedback: Your function performed correctly for argument(s) [360;270;90]
Feedback: Your function performed correctly for argument(s) [342 668;589 105;397 305]
Feedback: Your function performed correctly for argument(s) [563 551 501;10 669 287]
Feedback: Your function performed correctly for argument(s) [450 120 441 564 475 649 148 452 603 286;337 579 195 392 207 261 647 167 676 676;548 557 149 56 279 90 715 160 3 505;6 70 594 233 505 541 691 404 331 594]
Feedback: Your function performed correctly for argument(s) [138 58 615;522 163 305;403 195 145;302 214 427;294 82 494]
Feedback: Your function performed correctly for argument(s) [80 682 627 41;272 356 51 341;44 466 77 57;66 429 63 213]
Feedback: Your function performed correctly for argument(s) [364 222 478 124 364;120 61 345 181 296;499 658 599 645 371;390 100 604 69 129]
Your solution is correct.
Problem 3 (simple_stats):
Feedback: Your function performed correctly for argument(s) [1 1 1;1 1 1]
Feedback: Your function performed correctly for argument(s) [1 2;3 4]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10]
Feedback: Your function performed correctly for argument(s) [18 3 18;18 2 10;18 16 6;8 3 17;2 9 7;20 9 9;1 20 12;18 6 2]
Feedback: Your function performed correctly for argument(s) [7 13 4 10;4 3 17 3;2 14 15 3;17 7 8 18;20 7 14 1;7 14 8 1]
Feedback: Your function performed correctly for argument(s) [11 3 18 11 17;9 16 20 4 4;2 7 4 1 8;1 7 3 17 3;16 7 13 5 16;11 10 15 13 20]
Feedback: Your function performed correctly for argument(s) [10 13 10 10 8 1 20;19 4 7 4 9 11 16]
Feedback: Your function performed correctly for argument(s) [15 12 7 7 8 8 1;2 2 6 15 4 15 1;17 17 7 3 20 19 4;7 11 5 16 12 11 6;15 16 10 16 19 12 8;14 12 20 12 8 10 7]
Feedback: Your function performed correctly for argument(s) [5 17 5 8 13 13 13 15;2 9 6 10 9 3 20 6;9 19 6 20 12 5 12 5;18 12 16 16 14 13 17 8;13 15 15 19 12 1 10 2;15 8 16 18 4 7 7 12;6 8 16 9 8 12 20 1;20 12 13 3 17 19 10 3]
Feedback: Your function performed correctly for argument(s) [12 14 8 18 17 18 12;13 17 18 4 6 2 5;11 9 13 12 1 14 2;4 2 1 9 11 19 17;6 4 14 6 19 15 13]
Your solution is correct.
Problem 4 (odd_rms):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 6
Feedback: Your function performed correctly for argument(s) 7
Feedback: Your function performed correctly for argument(s) 8
Feedback: Your function performed correctly for argument(s) 87
Feedback: Your function performed correctly for argument(s) 17
Feedback: Your function performed correctly for argument(s) 34
Feedback: Your function performed correctly for argument(s) 17
Feedback: Your function performed correctly for argument(s) 90
Feedback: Your function performed correctly for argument(s) 65
Your solution is correct.
Problem 5 (fence):
Feedback: Your function performed correctly for argument(s) 100, 10
Feedback: Your function performed correctly for argument(s) 100, 9
Feedback: Your function performed correctly for argument(s) 100, 11
Feedback: Your function performed correctly for argument(s) 99, 9
Feedback: Your function performed correctly for argument(s) 99, 11
Feedback: Your function performed correctly for argument(s) 10, 11
Feedback: Your function performed correctly for argument(s) 348, 1
Feedback: Your function performed correctly for argument(s) 56, 17
Feedback: Your function performed correctly for argument(s) 749, 20
Feedback: Your function performed correctly for argument(s) 261, 15
Feedback: Your function performed correctly for argument(s) 206, 19
Feedback: Your function performed correctly for argument(s) 658, 12
Your solution is correct.
Problem 6 (zero_stat):
Feedback: Your function performed correctly for argument(s) [1 0;0 1]
Feedback: Your function performed correctly for argument(s) [1 1 0 1 0 0 0 1 0]
Feedback: Your function performed correctly for argument(s) [0 0 0 0]
Feedback: Your function performed correctly for argument(s) [1 1 1 1 1]
Feedback: Your function performed correctly for argument(s) [1;0;0;1;0;0;0;1;0;0]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) [0 1 1 1 1 0 0 0;1 0 0 1 0 0 0 0;1 1 1 1 0 0 0 0;0 1 0 0 1 1 1 1]
Feedback: Your function performed correctly for argument(s) [0 0;0 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 0 0 1 1 0]
Feedback: Your function performed correctly for argument(s) [0 0 0 0;0 1 0 1;1 0 0 0;1 1 0 0;0 1 1 1;1 1 1 1;1 0 0 1;1 1 1 1]
Feedback: Your function performed correctly for argument(s) [0 0;1 1;1 0;1 0;0 1]
Feedback: Your function performed correctly for argument(s) [0 1 0 0 0]
Your solution is correct.
Problem 7 (reverse_diag):
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 13
Feedback: Your function performed correctly for argument(s) 11
Feedback: Your function performed correctly for argument(s) 24
Feedback: Your function performed correctly for argument(s) 36
Feedback: Your function performed correctly for argument(s) 46
Feedback: Your function performed correctly for argument(s) 48
Feedback: Your function performed correctly for argument(s) 37
Your solution is correct.
Problem 8 (sum3and5muls):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 6
Feedback: Your function performed correctly for argument(s) 7
Feedback: Your function performed correctly for argument(s) 8
Feedback: Your function performed correctly for argument(s) 9
Feedback: Your function performed correctly for argument(s) 10
Feedback: Your function performed correctly for argument(s) 12
Feedback: Your function performed correctly for argument(s) 15
Feedback: Your function performed correctly for argument(s) 29
Feedback: Your function performed correctly for argument(s) 30
Feedback: Your function performed correctly for argument(s) 31
Feedback: Your function performed correctly for argument(s) 401
Feedback: Your function performed correctly for argument(s) 973
Feedback: Your function performed correctly for argument(s) 771
Feedback: Your function performed correctly for argument(s) 520
Feedback: Your function performed correctly for argument(s) 483
Feedback: Your function performed correctly for argument(s) 814
Feedback: Your function performed correctly for argument(s) 254
Feedback: Your function performed correctly for argument(s) 127
Your solution is correct.
Score: 8/8
Alphanumeric Code: XXXXXX
Code XXXXXX was stored in file HW4.MOOC. Submit this file on Coursera!
宿題の中でちょっと手こずったのが、以下の問題。
*** Write a function called reverse_diag that creates a square matrix whose elements are 0 except for 1s on the reverse diagonal from top right to bottom left. The reverse diagonal of an n-by-n matrix consists of the elements at the following indexes: (1, n), (2, n-1), (3, n-2), … (n, 1). The function takes one positive integer input argument named n, which is the size of the matrix, and returns the matrix itself as an output argument. Note that using the built-in functions eye and diag are not allowed. (Hint: you can index into a matrix with a single index and MATLAB will handle it as if it was a vector using column-major order. Note that the grader will not test for n = 1, but try to solve it for that case too.)
Hintがあるが、この意味がわからない。クラスのDiscussionページを見ると、このHintの意味を質問している人が!そしてその回答は、以下のような行列操作を意味しているとのこと。
>> A = [1,2,3; 4,5,6; 7,8,9]
A =
1 2 3
4 5 6
7 8 9
>> A(3,2)
ans =
8
>> A(6)
ans =
8
>> A(2:5)
ans
4
7
2
5
なるほどと試してみると、たった2行のスクリプトで書けてしまうではないか!これは覚えておきたいテクニック。Lesson4を無事完了。
Homework 4 Grader (v4.16.7.5)
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. intquad
2. sindeg
3. simple_stats
4. odd_rms
5. fence
6. zero_stat
7. reverse_diag
8. sum3and5muls
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (intquad):
Feedback: Your function performed correctly for argument(s) 2, 3
Feedback: Your function performed correctly for argument(s) 4, 4
Feedback: Your function performed correctly for argument(s) 1, 5
Feedback: Your function performed correctly for argument(s) 3, 1
Feedback: Your function performed correctly for argument(s) 1, 1
Feedback: Your function performed correctly for argument(s) 5, 2
Feedback: Your function performed correctly for argument(s) 5, 5
Feedback: Your function performed correctly for argument(s) 5, 1
Feedback: Your function performed correctly for argument(s) 4, 5
Feedback: Your function performed correctly for argument(s) 3, 4
Feedback: Your function performed correctly for argument(s) 5, 5
Your solution is correct.
Problem 2 (sindeg):
Feedback: Your function performed correctly for argument(s) [0 90 180]
Feedback: Your function performed correctly for argument(s) [30 60;90 120]
Feedback: Your function performed correctly for argument(s) 180
Feedback: Your function performed correctly for argument(s) [360;270;90]
Feedback: Your function performed correctly for argument(s) [342 668;589 105;397 305]
Feedback: Your function performed correctly for argument(s) [563 551 501;10 669 287]
Feedback: Your function performed correctly for argument(s) [450 120 441 564 475 649 148 452 603 286;337 579 195 392 207 261 647 167 676 676;548 557 149 56 279 90 715 160 3 505;6 70 594 233 505 541 691 404 331 594]
Feedback: Your function performed correctly for argument(s) [138 58 615;522 163 305;403 195 145;302 214 427;294 82 494]
Feedback: Your function performed correctly for argument(s) [80 682 627 41;272 356 51 341;44 466 77 57;66 429 63 213]
Feedback: Your function performed correctly for argument(s) [364 222 478 124 364;120 61 345 181 296;499 658 599 645 371;390 100 604 69 129]
Your solution is correct.
Problem 3 (simple_stats):
Feedback: Your function performed correctly for argument(s) [1 1 1;1 1 1]
Feedback: Your function performed correctly for argument(s) [1 2;3 4]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10]
Feedback: Your function performed correctly for argument(s) [18 3 18;18 2 10;18 16 6;8 3 17;2 9 7;20 9 9;1 20 12;18 6 2]
Feedback: Your function performed correctly for argument(s) [7 13 4 10;4 3 17 3;2 14 15 3;17 7 8 18;20 7 14 1;7 14 8 1]
Feedback: Your function performed correctly for argument(s) [11 3 18 11 17;9 16 20 4 4;2 7 4 1 8;1 7 3 17 3;16 7 13 5 16;11 10 15 13 20]
Feedback: Your function performed correctly for argument(s) [10 13 10 10 8 1 20;19 4 7 4 9 11 16]
Feedback: Your function performed correctly for argument(s) [15 12 7 7 8 8 1;2 2 6 15 4 15 1;17 17 7 3 20 19 4;7 11 5 16 12 11 6;15 16 10 16 19 12 8;14 12 20 12 8 10 7]
Feedback: Your function performed correctly for argument(s) [5 17 5 8 13 13 13 15;2 9 6 10 9 3 20 6;9 19 6 20 12 5 12 5;18 12 16 16 14 13 17 8;13 15 15 19 12 1 10 2;15 8 16 18 4 7 7 12;6 8 16 9 8 12 20 1;20 12 13 3 17 19 10 3]
Feedback: Your function performed correctly for argument(s) [12 14 8 18 17 18 12;13 17 18 4 6 2 5;11 9 13 12 1 14 2;4 2 1 9 11 19 17;6 4 14 6 19 15 13]
Your solution is correct.
Problem 4 (odd_rms):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 6
Feedback: Your function performed correctly for argument(s) 7
Feedback: Your function performed correctly for argument(s) 8
Feedback: Your function performed correctly for argument(s) 87
Feedback: Your function performed correctly for argument(s) 17
Feedback: Your function performed correctly for argument(s) 34
Feedback: Your function performed correctly for argument(s) 17
Feedback: Your function performed correctly for argument(s) 90
Feedback: Your function performed correctly for argument(s) 65
Your solution is correct.
Problem 5 (fence):
Feedback: Your function performed correctly for argument(s) 100, 10
Feedback: Your function performed correctly for argument(s) 100, 9
Feedback: Your function performed correctly for argument(s) 100, 11
Feedback: Your function performed correctly for argument(s) 99, 9
Feedback: Your function performed correctly for argument(s) 99, 11
Feedback: Your function performed correctly for argument(s) 10, 11
Feedback: Your function performed correctly for argument(s) 348, 1
Feedback: Your function performed correctly for argument(s) 56, 17
Feedback: Your function performed correctly for argument(s) 749, 20
Feedback: Your function performed correctly for argument(s) 261, 15
Feedback: Your function performed correctly for argument(s) 206, 19
Feedback: Your function performed correctly for argument(s) 658, 12
Your solution is correct.
Problem 6 (zero_stat):
Feedback: Your function performed correctly for argument(s) [1 0;0 1]
Feedback: Your function performed correctly for argument(s) [1 1 0 1 0 0 0 1 0]
Feedback: Your function performed correctly for argument(s) [0 0 0 0]
Feedback: Your function performed correctly for argument(s) [1 1 1 1 1]
Feedback: Your function performed correctly for argument(s) [1;0;0;1;0;0;0;1;0;0]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) [0 1 1 1 1 0 0 0;1 0 0 1 0 0 0 0;1 1 1 1 0 0 0 0;0 1 0 0 1 1 1 1]
Feedback: Your function performed correctly for argument(s) [0 0;0 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 0 0 1 1 0]
Feedback: Your function performed correctly for argument(s) [0 0 0 0;0 1 0 1;1 0 0 0;1 1 0 0;0 1 1 1;1 1 1 1;1 0 0 1;1 1 1 1]
Feedback: Your function performed correctly for argument(s) [0 0;1 1;1 0;1 0;0 1]
Feedback: Your function performed correctly for argument(s) [0 1 0 0 0]
Your solution is correct.
Problem 7 (reverse_diag):
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 13
Feedback: Your function performed correctly for argument(s) 11
Feedback: Your function performed correctly for argument(s) 24
Feedback: Your function performed correctly for argument(s) 36
Feedback: Your function performed correctly for argument(s) 46
Feedback: Your function performed correctly for argument(s) 48
Feedback: Your function performed correctly for argument(s) 37
Your solution is correct.
Problem 8 (sum3and5muls):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 4
Feedback: Your function performed correctly for argument(s) 5
Feedback: Your function performed correctly for argument(s) 6
Feedback: Your function performed correctly for argument(s) 7
Feedback: Your function performed correctly for argument(s) 8
Feedback: Your function performed correctly for argument(s) 9
Feedback: Your function performed correctly for argument(s) 10
Feedback: Your function performed correctly for argument(s) 12
Feedback: Your function performed correctly for argument(s) 15
Feedback: Your function performed correctly for argument(s) 29
Feedback: Your function performed correctly for argument(s) 30
Feedback: Your function performed correctly for argument(s) 31
Feedback: Your function performed correctly for argument(s) 401
Feedback: Your function performed correctly for argument(s) 973
Feedback: Your function performed correctly for argument(s) 771
Feedback: Your function performed correctly for argument(s) 520
Feedback: Your function performed correctly for argument(s) 483
Feedback: Your function performed correctly for argument(s) 814
Feedback: Your function performed correctly for argument(s) 254
Feedback: Your function performed correctly for argument(s) 127
Your solution is correct.
Score: 8/8
Alphanumeric Code: XXXXXX
Code XXXXXX was stored in file HW4.MOOC. Submit this file on Coursera!
2016年05月23日
パチンコトレーダー6を購読
Introduction to Programming with MATLAB Lesson 3
MATLABの復習のために、COURSERAのコースを進めている。Week4のテーマはFunctionということで、簡単な行列処理を交えた関数の作成が課題の中心。
ホームワークを提出するには、Graderと呼ばれるMATLABのファイルhw3.pをダウンロードして使用する。問題を解いて、このGraderを実行すると以下のような案内がでて、番号を選ぶことで各問題の答えをチェックすることができる。全ての問題をチェックし終えたら、"9"を選択して課題の添削を行う。添削が終わるとGraderがあるフォルダに”HW3.MOOC”というファイルが作成される。これをCourseraのコースのWebsiteにアップロードすることで、ホームワークの提出が完了する。
マイルとキロメートルの距離の変換を間違え、延々と無駄な時間を費やしたが、無事にLesson3が完了。
Homework 3 Grader (v3.16.7.2)
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. circle
2. even_index
3. flip_it
4. top_right
5. peri_sum
6. light_speed
7. accelerate
8. income
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (circle):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) 1.71456669863338
Feedback: Your function performed correctly for argument(s) 9.61035847547163
Feedback: Your function performed correctly for argument(s) 4.77685529036592
Feedback: Your function performed correctly for argument(s) 6.36225277991616
Feedback: Your function performed correctly for argument(s) 0.881510276101811
Your solution is correct.
Problem 2 (even_index):
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6]
Feedback: Your function performed correctly for argument(s) [1 2 3 4;5 6 7 8]
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10 11 12]
Feedback: Your function performed correctly for argument(s) [2;4;6;8;10;12;14;16;18;20;22]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [12 12 15 15 8 2 15;11 13 6 2 2 4 1;3 14 11 19 10 14 4;18 6 17 1 12 19 8;18 15 5 18 17 3 15;19 8 14 5 9 13 4;7 2 12 5 10 13 7]
Feedback: Your function performed correctly for argument(s) [12;9;8;13]
Feedback: Your function performed correctly for argument(s) [1 2;13 4]
Feedback: Your function performed correctly for argument(s) [1 4;19 1;12 1;12 12;10 6;7 11;16 8]
Feedback: Your function performed correctly for argument(s) [15 15 19 19 1 1 9 4 10 6 8 10 8;12 11 14 3 1 9 11 20 13 11 19 16 2;18 8 2 6 2 7 6 11 12 18 7 14 1;20 19 4 17 17 6 19 20 14 14 8 4 8;9 16 18 2 15 13 9 6 19 4 16 20 16;18 8 9 8 2 15 6 6 15 19 11 5 14;7 7 15 10 6 7 17 5 12 1 16 2 19;8 7 5 10 10 12 14 13 17 11 6 3 2;7 18 1 5 14 15 13 13 14 9 17 8 2;2 14 15 1 19 8 19 18 4 18 14 14 12;2 3 16 7 13 3 17 4 5 5 4 19 14;1 2 4 8 15 8 17 11 15 3 4 17 19]
Feedback: Your function performed correctly for argument(s) [2 17 17 3 17 10 18 12 16 14 1 5 16 11 13;18 15 1 11 15 12 9 9 1 2 5 1 2 12 8;14 10 16 20 13 3 16 10 17 10 7 2 3 15 12;7 6 1 16 14 14 8 1 9 17 17 13 4 12 17;12 5 13 3 14 13 6 17 17 5 14 17 3 4 20;14 9 6 16 8 9 1 8 1 19 7 11 12 3 1;18 2 14 3 2 12 10 16 13 6 17 17 16 7 11;17 9 18 9 14 8 2 20 15 12 15 15 9 4 1;8 5 20 10 20 8 5 17 16 7 11 14 7 11 4;13 17 1 5 20 6 12 17 8 15 20 9 1 12 13]
Your solution is correct.
Problem 3 (flip_it):
Feedback: Your function performed correctly for argument(s) [1 2 3]
Feedback: Your function performed correctly for argument(s) [1 3 5 7 9 11]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [9 2 10 2 7 3 10 8 7 4 4 8 1]
Feedback: Your function performed correctly for argument(s) [8 10 6 1 8 9 4 5 3 7 1 3 5]
Feedback: Your function performed correctly for argument(s) [4 1 4 8 8 9 4 9]
Feedback: Your function performed correctly for argument(s) [9 7 2 7 1 4 6 10 3]
Feedback: Your function performed correctly for argument(s) [6 2 10 6 9 6]
Feedback: Your function performed correctly for argument(s) [17 9 12 8 18 2 4 3 12 10 5 8 6 19 9]
Feedback: Your function performed correctly for argument(s) [19 15 8 1 14 18 6 2 2 15 5 19 2 17 14 17 6 7 19 11]
Your solution is correct.
Problem 4 (top_right):
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 1
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 2
Feedback: Your function performed correctly for argument(s) [8 1 10 8;6 7 1 8;6 8 9 1;2 9 4 5], 1
Feedback: Your function performed correctly for argument(s) [2 10 6 10;8 10 10 9;7 1 9 2;5 7 9 10], 2
Feedback: Your function performed correctly for argument(s) [6 6 6 4;4 1 1 6;2 6 7 10;4 7 4 2], 3
Feedback: Your function performed correctly for argument(s) [5 1 2 1;6 7 7 1;5 6 5 8;7 5 4 1], 4
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10], 1
Feedback: Your function performed correctly for argument(s) [1;3;5;7;9;11;13;15;17;19;21], 1
Feedback: Your function performed correctly for argument(s) [13 20 12 15 6 13 10 17 13 8;14 18 15 13 20 5 17 20 17 7;16 8 8 4 11 17 6 3 12 17;12 14 18 20 9 8 19 1 1 8;11 5 1 5 20 16 20 11 1 8], 2
Feedback: Your function performed correctly for argument(s) [6 16 7 12 1;1 18 7 18 19;12 4 20 12 7;2 10 15 4 18;11 20 20 5 15;6 17 16 8 12;4 11 1 10 1;14 1 13 13 8], 2
Feedback: Your function performed correctly for argument(s) [9 20 1 2 13;2 19 10 2 20;2 14 15 17 5;13 20 12 10 4;8 14 3 7 1;19 4 7 8 13;11 1 13 16 19], 5
Feedback: Your function performed correctly for argument(s) [20 8 10 1 11 6 13 7 9 18;17 14 1 16 13 19 13 3 19 1;5 13 12 7 11 13 20 14 19 19;16 8 10 8 17 2 15 9 2 15;18 19 20 19 5 13 6 11 11 12;7 13 15 13 7 20 4 9 13 9;17 16 19 18 17 16 20 5 19 5;13 11 7 9 7 10 4 14 20 16;8 6 15 17 6 12 12 17 4 14;14 12 19 14 13 6 5 6 2 4], 5
Feedback: Your function performed correctly for argument(s) [13 20 6 8 16 17 12 10 13 13;4 7 7 20 16 17 10 1 10 2;3 15 6 2 1 15 12 6 3 11;5 14 9 17 9 2 17 20 19 8;6 14 9 15 10 4 16 13 20 5;19 16 20 9 5 15 6 13 7 3;3 19 1 15 2 13 17 1 7 20;1 13 18 10 5 18 14 7 8 12;20 16 7 19 18 17 10 1 2 15;6 7 11 12 17 10 7 18 1 12], 5
Feedback: Your function performed correctly for argument(s) [6 6 12 3 3 4 12 8 9 18 4 8 8 12 15;13 10 12 2 3 19 6 9 6 3 5 5 3 11 9;2 10 9 5 2 11 18 7 1 9 4 5 5 12 18;18 3 16 6 12 9 4 18 15 13 18 20 19 4 5;1 4 1 16 13 13 16 14 7 6 20 8 15 8 14;17 10 15 15 13 7 3 20 17 8 3 1 19 4 13;14 12 6 14 8 1 20 13 10 19 17 8 16 3 19;1 10 12 12 17 15 12 18 8 17 10 3 16 19 10;8 9 12 20 7 17 15 4 10 12 3 9 9 3 14;17 14 11 14 18 8 12 14 17 1 9 15 12 9 8;4 11 20 18 2 15 9 14 10 4 8 7 14 1 1;4 4 11 7 6 8 8 19 19 18 17 20 1 8 18;7 13 8 20 15 4 8 9 9 4 12 17 3 5 1;14 14 12 4 6 20 13 19 6 16 11 1 3 11 15;3 16 19 19 19 8 9 6 16 3 18 7 9 18 9;3 6 12 13 15 15 3 9 6 3 12 15 17 20 13], 2
Feedback: Your function performed correctly for argument(s) [6 11 14 15 4 1 11 7 9 6 11 7 8 4 5;9 12 12 11 9 7 1 11 16 15 20 20 12 13 10;4 7 6 9 10 7 15 11 20 4 1 8 12 4 5;17 7 20 11 18 14 6 15 14 1 6 1 6 10 7;4 2 15 11 1 20 14 7 4 20 12 9 12 1 12;1 16 5 13 16 7 13 18 2 18 5 19 6 10 9;20 5 6 16 7 11 15 6 20 14 15 2 18 11 13;4 18 9 16 19 10 5 13 16 19 18 20 11 3 6;11 5 6 15 15 18 17 5 17 18 12 19 18 7 6;2 20 13 2 4 11 17 20 8 8 7 17 18 11 12;3 1 8 20 7 19 17 20 5 5 8 5 13 4 3;8 13 12 9 13 10 13 13 17 19 19 9 3 7 13;17 3 9 9 5 13 12 8 14 9 18 12 3 18 20;12 11 11 3 10 14 7 14 17 5 9 20 15 15 20;15 2 14 9 13 18 7 1 11 12 12 9 4 9 16;14 17 13 7 16 13 7 19 16 11 15 11 4 6 18;5 4 3 15 13 9 3 11 3 15 5 12 16 14 11;9 13 4 20 6 12 16 13 20 4 6 6 4 17 19], 5
Your solution is correct.
Problem 5 (peri_sum):
Feedback: Your function performed correctly for argument(s) [1 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6;7 8 9]
Feedback: Your function performed correctly for argument(s) [7 7 1 2;4 5 6 7;10 2 6 2;5 1 10 6;7 4 6 3]
Feedback: Your function performed correctly for argument(s) [4 1 5 8 7;6 2 6 10 3;1 1 4 5 9]
Feedback: Your function performed correctly for argument(s) [5 6 4 10 15 17 2 10 9;9 1 7 13 12 10 10 7 6;16 11 16 3 15 13 5 15 6;11 20 7 14 16 15 20 9 11;18 4 2 7 3 14 10 16 17;17 5 9 2 14 4 12 6 2;16 11 19 17 3 20 15 11 5]
Feedback: Your function performed correctly for argument(s) [13 15 12 20 6;10 17 9 13 6;2 1 2 10 16;3 1 2 13 1;5 16 11 19 1;7 7 17 4 11;20 2 2 8 14;19 11 8 6 14;19 15 3 14 1;10 7 10 5 20]
Feedback: Your function performed correctly for argument(s) [12 5 20 13 3 3 19;6 11 10 16 14 8 7;7 1 18 14 17 19 6;16 4 16 7 11 7 8;19 18 3 15 17 20 7;1 12 8 2 20 3 18;11 10 1 13 2 17 16;8 2 6 15 6 18 6;12 18 11 10 8 10 7;3 15 8 20 11 9 14]
Feedback: Your function performed correctly for argument(s) [14 8 12 11 6 3 9 4 1;12 1 14 20 2 19 15 3 9;4 16 9 19 4 17 15 19 11;1 1 1 11 12 10 14 17 8;17 8 16 8 9 6 20 4 13]
Your solution is correct.
Problem 6 (light_speed):
Feedback: Your function performed correctly for argument(s) 150000000
Feedback: Your function performed correctly for argument(s) [1500000000 3000000000]
Feedback: Your function performed correctly for argument(s) [0 1000000]
Feedback: Your function performed correctly for argument(s) [1570902150.11882 3805108781.81416 5279778988.17646]
Feedback: Your function performed correctly for argument(s) [1716193830.64181 9586082369.64988 4660514773.14573 4332006372.25577 1819830327.28635 4140751031.51736]
Feedback: Your function performed correctly for argument(s) 211157862.834811
Feedback: Your function performed correctly for argument(s) [8179255724.34534 7779495854.71448 9132131985.32957 1164455916.32742]
Feedback: Your function performed correctly for argument(s) [8206315829.08654 3393111343.95214 3226478918.34334]
Your solution is correct.
Problem 7 (accelerate):
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;0;0], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [1;0;0], 1
Feedback: Your function performed correctly for argument(s) [0;1;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [0;0;1], [0;0;1], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [1;2;3], [3;2;1], 2
Feedback: Your function performed correctly for argument(s) [3.68185359342267;0.707953207157461;7.87421597196228], [6.04511625196917;1.74149149765483;1.23346075210125], 2.16964310148261
Feedback: Your function performed correctly for argument(s) [3.0036725309385;3.85475509409156;8.65788589249769], [5.78234263501875;8.12416759801194;4.424514756863], 0.610719680175074
Feedback: Your function performed correctly for argument(s) [0.288589179363482;4.2202588561756;0.0388997631641008], [5.12232587486394;6.10931688750328;4.19433669230859], 4.8970195639394
Feedback: Your function performed correctly for argument(s) [6.01893919634487;7.09003911183783;0.893744516337807], [0.323751802333829;5.83160561934083;4.96122623411892], 2.0321360319669
Feedback: Your function performed correctly for argument(s) [9.79510649456171;5.43799755864838;8.00860403877113], [3.72623254417782;1.93861681381644;0.453059994429209], 3.69149437994359
Feedback: Your function performed correctly for argument(s) [1.96449322228721;9.14493034363338;1.36060144303665], [5.78353416094174;6.83136106972525;5.8943334450245], 4.16334356862933
Your solution is correct.
Problem 8 (income):
Feedback: Your function performed correctly for argument(s) [1 1], [2 3]
Feedback: Your function performed correctly for argument(s) [1 2 3], [4 5 6]
Feedback: Your function performed correctly for argument(s) 7, 8
Feedback: Your function performed correctly for argument(s) [1 0 1], [2 3 2]
Feedback: Your function performed correctly for argument(s) [5 2], [0 3]
Feedback: Your function performed correctly for argument(s) [2 3 6], [3 4 8]
Feedback: Your function performed correctly for argument(s) [1 4 10], [3 5 8]
Feedback: Your function performed correctly for argument(s) [1 5 6 5], [2 1 6 10]
Feedback: Your function performed correctly for argument(s) [5 5 10 6], [9 3 4 8]
Feedback: Your function performed correctly for argument(s) [2 9 1 5 3 10], [6 5 2 3 4 10]
Feedback: Your function performed correctly for argument(s) [1 6 2 4 8 6], [5 4 6 2 3 4]
Your solution is correct.
Score: 8/8
Alphanumeric Code: xxxxxx
Code xxxxxx was stored in file HW3.MOOC. Submit this file on Coursera!
ホームワークを提出するには、Graderと呼ばれるMATLABのファイルhw3.pをダウンロードして使用する。問題を解いて、このGraderを実行すると以下のような案内がでて、番号を選ぶことで各問題の答えをチェックすることができる。全ての問題をチェックし終えたら、"9"を選択して課題の添削を行う。添削が終わるとGraderがあるフォルダに”HW3.MOOC”というファイルが作成される。これをCourseraのコースのWebsiteにアップロードすることで、ホームワークの提出が完了する。
マイルとキロメートルの距離の変換を間違え、延々と無駄な時間を費やしたが、無事にLesson3が完了。
Homework 3 Grader (v3.16.7.2)
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. circle
2. even_index
3. flip_it
4. top_right
5. peri_sum
6. light_speed
7. accelerate
8. income
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (circle):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) 1.71456669863338
Feedback: Your function performed correctly for argument(s) 9.61035847547163
Feedback: Your function performed correctly for argument(s) 4.77685529036592
Feedback: Your function performed correctly for argument(s) 6.36225277991616
Feedback: Your function performed correctly for argument(s) 0.881510276101811
Your solution is correct.
Problem 2 (even_index):
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6]
Feedback: Your function performed correctly for argument(s) [1 2 3 4;5 6 7 8]
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10 11 12]
Feedback: Your function performed correctly for argument(s) [2;4;6;8;10;12;14;16;18;20;22]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [12 12 15 15 8 2 15;11 13 6 2 2 4 1;3 14 11 19 10 14 4;18 6 17 1 12 19 8;18 15 5 18 17 3 15;19 8 14 5 9 13 4;7 2 12 5 10 13 7]
Feedback: Your function performed correctly for argument(s) [12;9;8;13]
Feedback: Your function performed correctly for argument(s) [1 2;13 4]
Feedback: Your function performed correctly for argument(s) [1 4;19 1;12 1;12 12;10 6;7 11;16 8]
Feedback: Your function performed correctly for argument(s) [15 15 19 19 1 1 9 4 10 6 8 10 8;12 11 14 3 1 9 11 20 13 11 19 16 2;18 8 2 6 2 7 6 11 12 18 7 14 1;20 19 4 17 17 6 19 20 14 14 8 4 8;9 16 18 2 15 13 9 6 19 4 16 20 16;18 8 9 8 2 15 6 6 15 19 11 5 14;7 7 15 10 6 7 17 5 12 1 16 2 19;8 7 5 10 10 12 14 13 17 11 6 3 2;7 18 1 5 14 15 13 13 14 9 17 8 2;2 14 15 1 19 8 19 18 4 18 14 14 12;2 3 16 7 13 3 17 4 5 5 4 19 14;1 2 4 8 15 8 17 11 15 3 4 17 19]
Feedback: Your function performed correctly for argument(s) [2 17 17 3 17 10 18 12 16 14 1 5 16 11 13;18 15 1 11 15 12 9 9 1 2 5 1 2 12 8;14 10 16 20 13 3 16 10 17 10 7 2 3 15 12;7 6 1 16 14 14 8 1 9 17 17 13 4 12 17;12 5 13 3 14 13 6 17 17 5 14 17 3 4 20;14 9 6 16 8 9 1 8 1 19 7 11 12 3 1;18 2 14 3 2 12 10 16 13 6 17 17 16 7 11;17 9 18 9 14 8 2 20 15 12 15 15 9 4 1;8 5 20 10 20 8 5 17 16 7 11 14 7 11 4;13 17 1 5 20 6 12 17 8 15 20 9 1 12 13]
Your solution is correct.
Problem 3 (flip_it):
Feedback: Your function performed correctly for argument(s) [1 2 3]
Feedback: Your function performed correctly for argument(s) [1 3 5 7 9 11]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [9 2 10 2 7 3 10 8 7 4 4 8 1]
Feedback: Your function performed correctly for argument(s) [8 10 6 1 8 9 4 5 3 7 1 3 5]
Feedback: Your function performed correctly for argument(s) [4 1 4 8 8 9 4 9]
Feedback: Your function performed correctly for argument(s) [9 7 2 7 1 4 6 10 3]
Feedback: Your function performed correctly for argument(s) [6 2 10 6 9 6]
Feedback: Your function performed correctly for argument(s) [17 9 12 8 18 2 4 3 12 10 5 8 6 19 9]
Feedback: Your function performed correctly for argument(s) [19 15 8 1 14 18 6 2 2 15 5 19 2 17 14 17 6 7 19 11]
Your solution is correct.
Problem 4 (top_right):
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 1
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 2
Feedback: Your function performed correctly for argument(s) [8 1 10 8;6 7 1 8;6 8 9 1;2 9 4 5], 1
Feedback: Your function performed correctly for argument(s) [2 10 6 10;8 10 10 9;7 1 9 2;5 7 9 10], 2
Feedback: Your function performed correctly for argument(s) [6 6 6 4;4 1 1 6;2 6 7 10;4 7 4 2], 3
Feedback: Your function performed correctly for argument(s) [5 1 2 1;6 7 7 1;5 6 5 8;7 5 4 1], 4
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10], 1
Feedback: Your function performed correctly for argument(s) [1;3;5;7;9;11;13;15;17;19;21], 1
Feedback: Your function performed correctly for argument(s) [13 20 12 15 6 13 10 17 13 8;14 18 15 13 20 5 17 20 17 7;16 8 8 4 11 17 6 3 12 17;12 14 18 20 9 8 19 1 1 8;11 5 1 5 20 16 20 11 1 8], 2
Feedback: Your function performed correctly for argument(s) [6 16 7 12 1;1 18 7 18 19;12 4 20 12 7;2 10 15 4 18;11 20 20 5 15;6 17 16 8 12;4 11 1 10 1;14 1 13 13 8], 2
Feedback: Your function performed correctly for argument(s) [9 20 1 2 13;2 19 10 2 20;2 14 15 17 5;13 20 12 10 4;8 14 3 7 1;19 4 7 8 13;11 1 13 16 19], 5
Feedback: Your function performed correctly for argument(s) [20 8 10 1 11 6 13 7 9 18;17 14 1 16 13 19 13 3 19 1;5 13 12 7 11 13 20 14 19 19;16 8 10 8 17 2 15 9 2 15;18 19 20 19 5 13 6 11 11 12;7 13 15 13 7 20 4 9 13 9;17 16 19 18 17 16 20 5 19 5;13 11 7 9 7 10 4 14 20 16;8 6 15 17 6 12 12 17 4 14;14 12 19 14 13 6 5 6 2 4], 5
Feedback: Your function performed correctly for argument(s) [13 20 6 8 16 17 12 10 13 13;4 7 7 20 16 17 10 1 10 2;3 15 6 2 1 15 12 6 3 11;5 14 9 17 9 2 17 20 19 8;6 14 9 15 10 4 16 13 20 5;19 16 20 9 5 15 6 13 7 3;3 19 1 15 2 13 17 1 7 20;1 13 18 10 5 18 14 7 8 12;20 16 7 19 18 17 10 1 2 15;6 7 11 12 17 10 7 18 1 12], 5
Feedback: Your function performed correctly for argument(s) [6 6 12 3 3 4 12 8 9 18 4 8 8 12 15;13 10 12 2 3 19 6 9 6 3 5 5 3 11 9;2 10 9 5 2 11 18 7 1 9 4 5 5 12 18;18 3 16 6 12 9 4 18 15 13 18 20 19 4 5;1 4 1 16 13 13 16 14 7 6 20 8 15 8 14;17 10 15 15 13 7 3 20 17 8 3 1 19 4 13;14 12 6 14 8 1 20 13 10 19 17 8 16 3 19;1 10 12 12 17 15 12 18 8 17 10 3 16 19 10;8 9 12 20 7 17 15 4 10 12 3 9 9 3 14;17 14 11 14 18 8 12 14 17 1 9 15 12 9 8;4 11 20 18 2 15 9 14 10 4 8 7 14 1 1;4 4 11 7 6 8 8 19 19 18 17 20 1 8 18;7 13 8 20 15 4 8 9 9 4 12 17 3 5 1;14 14 12 4 6 20 13 19 6 16 11 1 3 11 15;3 16 19 19 19 8 9 6 16 3 18 7 9 18 9;3 6 12 13 15 15 3 9 6 3 12 15 17 20 13], 2
Feedback: Your function performed correctly for argument(s) [6 11 14 15 4 1 11 7 9 6 11 7 8 4 5;9 12 12 11 9 7 1 11 16 15 20 20 12 13 10;4 7 6 9 10 7 15 11 20 4 1 8 12 4 5;17 7 20 11 18 14 6 15 14 1 6 1 6 10 7;4 2 15 11 1 20 14 7 4 20 12 9 12 1 12;1 16 5 13 16 7 13 18 2 18 5 19 6 10 9;20 5 6 16 7 11 15 6 20 14 15 2 18 11 13;4 18 9 16 19 10 5 13 16 19 18 20 11 3 6;11 5 6 15 15 18 17 5 17 18 12 19 18 7 6;2 20 13 2 4 11 17 20 8 8 7 17 18 11 12;3 1 8 20 7 19 17 20 5 5 8 5 13 4 3;8 13 12 9 13 10 13 13 17 19 19 9 3 7 13;17 3 9 9 5 13 12 8 14 9 18 12 3 18 20;12 11 11 3 10 14 7 14 17 5 9 20 15 15 20;15 2 14 9 13 18 7 1 11 12 12 9 4 9 16;14 17 13 7 16 13 7 19 16 11 15 11 4 6 18;5 4 3 15 13 9 3 11 3 15 5 12 16 14 11;9 13 4 20 6 12 16 13 20 4 6 6 4 17 19], 5
Your solution is correct.
Problem 5 (peri_sum):
Feedback: Your function performed correctly for argument(s) [1 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6;7 8 9]
Feedback: Your function performed correctly for argument(s) [7 7 1 2;4 5 6 7;10 2 6 2;5 1 10 6;7 4 6 3]
Feedback: Your function performed correctly for argument(s) [4 1 5 8 7;6 2 6 10 3;1 1 4 5 9]
Feedback: Your function performed correctly for argument(s) [5 6 4 10 15 17 2 10 9;9 1 7 13 12 10 10 7 6;16 11 16 3 15 13 5 15 6;11 20 7 14 16 15 20 9 11;18 4 2 7 3 14 10 16 17;17 5 9 2 14 4 12 6 2;16 11 19 17 3 20 15 11 5]
Feedback: Your function performed correctly for argument(s) [13 15 12 20 6;10 17 9 13 6;2 1 2 10 16;3 1 2 13 1;5 16 11 19 1;7 7 17 4 11;20 2 2 8 14;19 11 8 6 14;19 15 3 14 1;10 7 10 5 20]
Feedback: Your function performed correctly for argument(s) [12 5 20 13 3 3 19;6 11 10 16 14 8 7;7 1 18 14 17 19 6;16 4 16 7 11 7 8;19 18 3 15 17 20 7;1 12 8 2 20 3 18;11 10 1 13 2 17 16;8 2 6 15 6 18 6;12 18 11 10 8 10 7;3 15 8 20 11 9 14]
Feedback: Your function performed correctly for argument(s) [14 8 12 11 6 3 9 4 1;12 1 14 20 2 19 15 3 9;4 16 9 19 4 17 15 19 11;1 1 1 11 12 10 14 17 8;17 8 16 8 9 6 20 4 13]
Your solution is correct.
Problem 6 (light_speed):
Feedback: Your function performed correctly for argument(s) 150000000
Feedback: Your function performed correctly for argument(s) [1500000000 3000000000]
Feedback: Your function performed correctly for argument(s) [0 1000000]
Feedback: Your function performed correctly for argument(s) [1570902150.11882 3805108781.81416 5279778988.17646]
Feedback: Your function performed correctly for argument(s) [1716193830.64181 9586082369.64988 4660514773.14573 4332006372.25577 1819830327.28635 4140751031.51736]
Feedback: Your function performed correctly for argument(s) 211157862.834811
Feedback: Your function performed correctly for argument(s) [8179255724.34534 7779495854.71448 9132131985.32957 1164455916.32742]
Feedback: Your function performed correctly for argument(s) [8206315829.08654 3393111343.95214 3226478918.34334]
Your solution is correct.
Problem 7 (accelerate):
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;0;0], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [1;0;0], 1
Feedback: Your function performed correctly for argument(s) [0;1;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [0;0;1], [0;0;1], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [1;2;3], [3;2;1], 2
Feedback: Your function performed correctly for argument(s) [3.68185359342267;0.707953207157461;7.87421597196228], [6.04511625196917;1.74149149765483;1.23346075210125], 2.16964310148261
Feedback: Your function performed correctly for argument(s) [3.0036725309385;3.85475509409156;8.65788589249769], [5.78234263501875;8.12416759801194;4.424514756863], 0.610719680175074
Feedback: Your function performed correctly for argument(s) [0.288589179363482;4.2202588561756;0.0388997631641008], [5.12232587486394;6.10931688750328;4.19433669230859], 4.8970195639394
Feedback: Your function performed correctly for argument(s) [6.01893919634487;7.09003911183783;0.893744516337807], [0.323751802333829;5.83160561934083;4.96122623411892], 2.0321360319669
Feedback: Your function performed correctly for argument(s) [9.79510649456171;5.43799755864838;8.00860403877113], [3.72623254417782;1.93861681381644;0.453059994429209], 3.69149437994359
Feedback: Your function performed correctly for argument(s) [1.96449322228721;9.14493034363338;1.36060144303665], [5.78353416094174;6.83136106972525;5.8943334450245], 4.16334356862933
Your solution is correct.
Problem 8 (income):
Feedback: Your function performed correctly for argument(s) [1 1], [2 3]
Feedback: Your function performed correctly for argument(s) [1 2 3], [4 5 6]
Feedback: Your function performed correctly for argument(s) 7, 8
Feedback: Your function performed correctly for argument(s) [1 0 1], [2 3 2]
Feedback: Your function performed correctly for argument(s) [5 2], [0 3]
Feedback: Your function performed correctly for argument(s) [2 3 6], [3 4 8]
Feedback: Your function performed correctly for argument(s) [1 4 10], [3 5 8]
Feedback: Your function performed correctly for argument(s) [1 5 6 5], [2 1 6 10]
Feedback: Your function performed correctly for argument(s) [5 5 10 6], [9 3 4 8]
Feedback: Your function performed correctly for argument(s) [2 9 1 5 3 10], [6 5 2 3 4 10]
Feedback: Your function performed correctly for argument(s) [1 6 2 4 8 6], [5 4 6 2 3 4]
Your solution is correct.
Score: 8/8
Alphanumeric Code: xxxxxx
Code xxxxxx was stored in file HW3.MOOC. Submit this file on Coursera!
2016年05月15日
Introduction to Programming with MATLAB Lesson1&2
COURSERAにて”Introduction to Programming with MATLAB”のコースを再受講開始。
コースのIntroductionの次の第2週目ということで、まずはMATLABの簡単な操作方法から解説される。
随所にユーモアを交えた講義で、非常に面白い!
公共の図書館でMATLAB onlineを使うところまでも解説されている。
宿題を提出するために、顔写真まで撮らされるのは非常に嫌な感じだが、仕方ない。
10個の問題を解いて、Quizを提出して終了。
Passed
10/10 points earned (100%)
Quiz passed!
コースのIntroductionの次の第2週目ということで、まずはMATLABの簡単な操作方法から解説される。
随所にユーモアを交えた講義で、非常に面白い!
公共の図書館でMATLAB onlineを使うところまでも解説されている。
宿題を提出するために、顔写真まで撮らされるのは非常に嫌な感じだが、仕方ない。
10個の問題を解いて、Quizを提出して終了。
Passed
10/10 points earned (100%)
Quiz passed!
2016年05月10日
MATLABトラブル
MATLAB R2016AをUbuntu14.04LTSで使用しているが、どうもグラフィックス関係に問題がありそうだ。グラフィックボードは、オープンソースのものではなくNVIDIAの公式な最新のドライバに入れ替えたがopenglのエラーが消えない。
MATLAB上でopenglコマンドを試してみると、
>> opengl info
Version: ''
Vendor: ''
Renderer: 'None'
RendererDriverVersion: ''
RendererDriverReleaseDate: ''
MaxTextureSize: 0
Visual: ''
Software: 1
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {}
MaxFrameBufferSize: 0
>> opengl hardware
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
やはりおかしい。延々と調べたが原因が分からない。しかし以下のようにターミナルからMATLABを立ち上げることでこれらの問題は回避できそうだ。
$ matlab -softwareopengl
MATLAB上でopenglコマンドを試してみると、
>> opengl info
Version: ''
Vendor: ''
Renderer: 'None'
RendererDriverVersion: ''
RendererDriverReleaseDate: ''
MaxTextureSize: 0
Visual: ''
Software: 1
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {}
MaxFrameBufferSize: 0
>> opengl hardware
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
やはりおかしい。延々と調べたが原因が分からない。しかし以下のようにターミナルからMATLABを立ち上げることでこれらの問題は回避できそうだ。
$ matlab -softwareopengl
2016年05月08日
システムトレード用自作パソコン
今後システムトレードで複雑な解析が実行できるように、性能の良いパソコンを自作した。
まずCPUはIntelのCore i7-6700K CPU @ 4.00GHzにした。
メモリはCORSAIRのVengeance LPX DDR4 16GBx2でトータル32GB。
ハードディスクはSanDiskのULTRA II SSD 480GB x 2でトータル960GB。
将来的にはGPUを用いた計算の高速化・並列化にも取り組みたいので、NVIDIA GeForce GTX 980 Tiを搭載したグラフィックボードSTRIX-GTX980TI-DC3OC-6GD5-GAMINGを設置。
このグラフィックボードが予想していたものよりも大きすぎた。ミドルタワーのPCケースを購入したが、なんとかギリギリに収まる感じ。
OSはUbuntu14.04LTSにした。パソコンは初めて自作したが、CPUの冷却ユニットまわりの設置がやや失敗しやすいか。組立自体は簡単だが1つ1つのパーツが高価なので、マザーボードに取り付ける際は慎重に。
まずCPUはIntelのCore i7-6700K CPU @ 4.00GHzにした。
メモリはCORSAIRのVengeance LPX DDR4 16GBx2でトータル32GB。
ハードディスクはSanDiskのULTRA II SSD 480GB x 2でトータル960GB。
将来的にはGPUを用いた計算の高速化・並列化にも取り組みたいので、NVIDIA GeForce GTX 980 Tiを搭載したグラフィックボードSTRIX-GTX980TI-DC3OC-6GD5-GAMINGを設置。
このグラフィックボードが予想していたものよりも大きすぎた。ミドルタワーのPCケースを購入したが、なんとかギリギリに収まる感じ。
OSはUbuntu14.04LTSにした。パソコンは初めて自作したが、CPUの冷却ユニットまわりの設置がやや失敗しやすいか。組立自体は簡単だが1つ1つのパーツが高価なので、マザーボードに取り付ける際は慎重に。
2016年05月07日
Chart Gallery Standardの導入
これまでは無料のPan Active Market Databaseの試用版を使用していたが、
Pan Active Market Databaseの利用
- Yahoo Finance等からの株価データの一括ダウンロードは困難
- MATLABによるデータベースへのアクセスが可能
などの理由から、Pan Active Market Databaseを用いてシステムを開発することにし、Chart GalleryのStandard版を購入した。
Panrolling社のサイトでライセンスを購入後(登録カードとDVDが郵送で届く)、パンローリング相場アプリケーションを立ち上げ、”ユーザー登録・内容変更”から、登録番号を入力する。
そして”Panデータ管理”ウインドウの”Pan取り込み”ボタンをクリックすると、以下のように最新の株価のデータベースへの取り込みが始まる。
しばらくして、私が試用版を導入した時期からおよそ1年分の株価が新規にデータベースに取り込まれた。
これまでにMySQLに取り込んだ株価データに、最新の株価データを追加していくMatlabのスクリプトが必要なので、これを作成しよう。
[課題]Matlabで最新の株価データをMySQL上の過去株価データベースに追加していくスクリプトの作成