How do I Measure Distances in an Image and save them in an array?

조회 수: 1 (최근 30일)
Linda Squillaci
Linda Squillaci 2024년 3월 21일
답변: Anton Kogios 2024년 3월 22일
Hi,
I have a question regarding the script resented here:
After I have measured a few features and created labels, how do I save them in an array for future use?
I take it is should be the "diffPos" variable in the function Update Units? Help would be much appreciated.
Thanks in advance!
Linda

답변 (1개)

Anton Kogios
Anton Kogios 2024년 3월 22일
I haven't been able to test this out but you should be able to change the output argument to include diffPos:
function diffPos = updateUnits(src,evt)
Alternatively, you may be able to save the data to a mat file using the save function (put this line at the end of the updateUnits function):
save('diffPosData.mat','diffPos')
You will then be able to load the file back into MATLAB using load.

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by