Info

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

Storing the results from a loop using tool box functions in a new matrix

조회 수: 1 (최근 30일)
Sascha Hein
Sascha Hein 2019년 12월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi there,
I'm calling a bunch of functions from the color toolbox for spectral data (p=31x3) to be converted to CIELAB values which I would like to store in a new matrix. This is my code:
for col = p
[xyz] = r2xyz(col,400,700,'d65_64');
[XYZ] = sum(xyz);
[lab] = xyz2lab(XYZ,'d65_64')
end
What I'm getting in the workspace is correct:
lab =
100.1127 -0.0331 0.0521
lab =
83.4176 0.7851 26.2322
lab =
86.5516 0.4043 22.8907
But I'd need to store these values in a new 3xn matrix called LAB
Most of the solutions offered in the community don't work because I'm using these functions.
Any advice is appreciated.
Thanks
SH
  댓글 수: 5
the cyclist
the cyclist 2019년 12월 20일
Are the functions r2xyz and xyz2lab from this File Exchange submission?
Can you upload an example of the variable p that works and gives lab output you mention?
Sascha Hein
Sascha Hein 2019년 12월 21일
Thanks for your help! This issue has been solved now in a different way. Thanks.

답변 (0개)

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by