필터 지우기
필터 지우기

How to plot an intensity graph?

조회 수: 3 (최근 30일)
Gee Cheng Mun
Gee Cheng Mun 2016년 1월 11일
댓글: Walter Roberson 2016년 1월 12일
I have obtained an average value of red pixel count as well the time involved. How do I plot an intensity graph?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 11일
plot(t, average_red_value_vector);
xlabel('time');
ylabel('Intensity');
  댓글 수: 10
Gee Cheng Mun
Gee Cheng Mun 2016년 1월 12일
편집: Gee Cheng Mun 2016년 1월 12일
The folders are named as shown below and they have an equal interval of 180 sec. Those timings below do not have a text file. How can I display those timings in the graph?
Frame 13: 540 - 720
Frame 14: 720 - 900
Frame 15: 900 - 1080
Frame 16: 1080 - 1260
Frame 17: 1260 - 1440
Frame 18: 1440 - 1620
Walter Roberson
Walter Roberson 2016년 1월 12일
In the code I give above, replace
folder_times(fold_idx) = ... you didn't say how you know the time
with
timestr = regexprep( folder_info(fold_idx).name, {'^[:]+:\s+', '\s+-\s+\d+$'}, {'', ''});
folder_times(fold_idx) = str2double(timestr);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by