필터 지우기
필터 지우기

Info

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

Gettinga plot for daily Max values in a dataset for 8 months

조회 수: 1 (최근 30일)
Piyush Shaunak
Piyush Shaunak 2017년 10월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to get a plot for daily maximum of the values. The data is for 8 months. I want the script to pause and take input from the user after every single plot. I am constantly struggling with my for loop for that. Any help would be appreciated. Thanks in advance.

답변 (1개)

Jonathan Chin
Jonathan Chin 2017년 10월 15일
There are many ways to do this, below is one example using inputdlg to get a user response
for i =1:8
figure% create new figure
plot(rand(1,10))%create plot for random data
resp=inputdlg('Enter Input:','input title',1,'default'); % see doc on inputdlg
% do something here with user input resp
end

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

Community Treasure Hunt

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

Start Hunting!

Translated by