Dot indexing is not supported for variables of this type - ISSUE?

1 回表示 (過去 30 日間)
L
L 2021 年 10 月 13 日
コメント済み: L 2021 年 10 月 16 日
Here is the screenshot. What is the problem here? Yesterday I was able to access the Data field in the Command Window with the code line in the screenshot.
Is it a common problem, or there is a problem in my script?
Thank you.
  5 件のコメント
Cam Salzberger
Cam Salzberger 2021 年 10 月 13 日
I've answered the image conversion from ROS message to image array in your other question:
L
L 2021 年 10 月 16 日
Thank you, I have solved the problem.

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

採用された回答

Jan
Jan 2021 年 10 月 13 日
Start with experimenting:
img2 = reshape(img, [4, 376, 672]);
rgb = permute(img2([3 2 1], :, :), [2, 3, 1]);
figure, image(rgb);
This is called "gunshot programming" and an anti-pattern. But if it works...

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by