Can anyone help me with this in matlab

1 回表示 (過去 30 日間)
Mehdi Fejzula
Mehdi Fejzula 2022 年 5 月 18 日
コメント済み: Mehdi Fejzula 2022 年 5 月 18 日
  4 件のコメント
Image Analyst
Image Analyst 2022 年 5 月 18 日
Why are there letters after the numbers in the temperature row? Do you need to somehow get values for the letters f, g, and h? So is 1gh equal to 1 * g * h?
Steven Lord
Steven Lord 2022 年 5 月 18 日
@Image Analyst I'm guessing those are the digits in the student identification number. That way while the implementation may be the same for each student, since they start with different data they can't just copy some other student's answer (unless their student ID number happens to give the same final result as the other student's ID number, which is unlikely.)
So with the ID number given at the end of the document, 10043052, a is 1, b and c are 0, d is 4, etc.

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

採用された回答

Steven Lord
Steven Lord 2022 年 5 月 18 日
if you could help me with the link between the days and the temperature per example
Okay, so you need help assembling the vector [2f, 2g, 2h, 2f, 2g, 2h, ...]? Build the first part using f, g, and h:
f = 9;
g = 2;
h = 8;
firstThreeDays = 20 + [f, g, h]
firstThreeDays = 1×3
29 22 28
Then use the repmat function to replicate those three days into a vector as long as you need it to be.
  1 件のコメント
Mehdi Fejzula
Mehdi Fejzula 2022 年 5 月 18 日
Thank you very much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by