Correct codes but no graph shows
古いコメントを表示
What do you do when your codes are correct but the graph does not show And do you add other graphs to be on same graph
6 件のコメント
Star Strider
2017 年 5 月 30 日
If ‘the codes are correct but the graph does not show’, the codes are not correct.
If we could see the code we might be able to find and fix the problem.
Samuel Suakye
2017 年 5 月 30 日
編集済み: Steven Lord
2017 年 5 月 30 日
Star Strider
2017 年 5 月 30 日
Your vector lengths must have the same row and column sizes. Since I have no idea what you are doing, I will let you sort that.
You also need to use element-wise operations. See the documentaiton on Array vs. Matrix Operations (link) for the details.
Samuel Suakye
2017 年 5 月 31 日
"What do you do when your codes are correct"
You change your perspective that your code is "correct". Your code is not "correct", in fact it is buggy. When you sit and think "my code is correct" then you will never get any better at looking for bugs, and understanding how to fix them. You need to learn to actually look at your code, and not rely on what you want/imagine/wish your code were doing.
Samuel Suakye
2017 年 6 月 6 日
編集済み: Stephen23
2017 年 6 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Events についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!