TASK Create a variable volumes that contains the last two columns of data. You can see the size of data in the output pane to the right of your screen.

33 ビュー (過去 30 日間)
and i wrote volumes = data(:,3:4) is still giving me error
  2 件のコメント
John D'Errico
John D'Errico 2023 年 5 月 30 日
編集済み: John D'Errico 2023 年 5 月 30 日
The line you wrote SHOULD put columns 3 and 4 into the array volumes. That it generates an error just means you did something we are not told.
When you get an error, show the ENTIRE error. Don't just tell us that something is still giving an error. We cannot see your screen, and we certainly cannot see into your computer.
Paste in the error message, the ENTIRE error message. So everything in red.
Ninad
Ninad 2023 年 11 月 5 日
Your answer is correct it worked for me

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

回答 (2 件)

Image Analyst
Image Analyst 2023 年 5 月 30 日
編集済み: Image Analyst 2023 年 5 月 30 日
Is data a 3-D array? What does this show"
whos data
If data is a 3-D array you need to do
volumes = data(:, 3:4, ;)
If data is a 2-D array, then your code would have worked.

OMPRAKASH
OMPRAKASH 2024 年 2 月 4 日
Create a variable volumes that contains the last two columns of data. You can see the size of data in the output pane to the right of your screen.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by