MATLAB Programming Techniques Course quiz problem

I really can't understand why I can't get this question right. The same question was closed without a proper answer: https://it.mathworks.com/matlabcentral/answers/1591624-mathlab-programing-techniques-online-course-problem
The first option occupies 8e9 < 1.015e10 bytes
The second 8e4 < 1.015e10 bytes
The third 8e5 < 1.015e10 bytes
The fourth 8e9 < 1.015e10 bytes
The fifth should be 1.6e10 > 1.015e10 bytes, so it should be the only right answer
Still, it's listed as wrong and I can't wrap my head around this. It's the only thing in the whole course I can't do and I really need the certification ASAP

5 件のコメント

Shinto Thomas
Shinto Thomas 2023 年 3 月 15 日
could please show the exact answer , as of my knowledge we have to select all option for the correct answer . But this is wrong according to the system.
Sharmila
Sharmila 2023 年 3 月 21 日
the ans is option 3 & 5
Shinto Thomas
Shinto Thomas 2023 年 3 月 21 日
Thank you Sharmila. the last code uses 2*8*10e9=16e9=1.6e10 bytes and
this less than 1.7e10. Then how we choose the last option as a right answer.
bhargav ram akkaraju
bhargav ram akkaraju 2023 年 4 月 28 日
Tq sharmilaa.
SENA REDDY
SENA REDDY 2023 年 6 月 28 日
移動済み: Adam Danz 2023 年 8 月 24 日
Option 3 and 5

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

 採用された回答

Dave B
Dave B 2022 年 2 月 7 日
編集済み: Dave B 2022 年 2 月 7 日

1 投票

You've marked the second and third lines as being 8e4 and 8e5 bytes, but this is incorrect.
Hint: how many elements are in a martix creted by ones/zeros with one argument?
x=rand(7);
size(x)
ans = 1×2
7 7

1 件のコメント

Luca Scagnellato
Luca Scagnellato 2022 年 2 月 7 日
Thanks Dave for the quick reply. I feel so dumb right now :)
After all these years using MATLAB I still forget these details, hopefully after this I won't anymore

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeManage Products についてさらに検索

製品

リリース

R2021b

質問済み:

2022 年 2 月 7 日

移動済み:

2023 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by