Deleted on request by my prof. Sorry

3 ビュー (過去 30 日間)
Danisaurus
Danisaurus 2020 年 2 月 26 日
コメント済み: John D'Errico 2020 年 3 月 2 日
Sorry, I was asked to take this down by my professor. He didn't want people copying my code next year.
  1 件のコメント
John D'Errico
John D'Errico 2020 年 3 月 2 日
Then don't post your homework assignment in the future.

サインインしてコメントする。

採用された回答

Benjamin Großmann
Benjamin Großmann 2020 年 2 月 26 日
編集済み: Benjamin Großmann 2020 年 2 月 26 日
I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least is running.
For now, lets stick to that line. What is your intention here? You are extending an array by incrementing its last value. Try using the colon operator or the linspace command for array creation. For evenly spaced arrays they are way more powerful and comprehensible.
  4 件のコメント
Danisaurus
Danisaurus 2020 年 2 月 26 日
Thank you so much! The plotting was the problem!
Benjamin Großmann
Benjamin Großmann 2020 年 2 月 26 日
You are welcome and thank you for accepting the answer!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by