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

1 Ansicht (letzte 30 Tage)
L
L am 13 Okt. 2021
Kommentiert: L am 16 Okt. 2021
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 Kommentare
L
L am 16 Okt. 2021
Thank you, I have solved the problem.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 13 Okt. 2021
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...

Weitere Antworten (0)

Kategorien

Mehr zu Network Connection and Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by