Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

MathLab programing techniques (online course) problem

조회 수: 1 (최근 30일)
Sylwia Terlicka
Sylwia Terlicka 2021년 11월 20일
마감: John D'Errico 2021년 11월 23일
I have problem with the anwer the question i the following quiz
The question is visible in attachment.
Thanks for any help
Sylwia
  댓글 수: 3
Sylwia Terlicka
Sylwia Terlicka 2021년 11월 23일
I do not know how many values are storage in each one, that is the question right from the quiz.
I try to pick all of them, first one, two, three and four, and other combinations and it was all wrong.
The hint is -> A double array requires 8 bytes per element. The functions ones, zeros, and randn all create double arrays.
DGM
DGM 2021년 11월 23일
The memory() call says you have 10.15E9 bytes available for arrays.
x = randn(1,1E9);
creates a 1x1E9 double array occupying 8E9 bytes.
x = [randn(1,1E9); randn(1,1E9)];
creates two 1x1E9 double arrays and vertically concatenates them to form a 2x1E9 array.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by