Keeps skipping my input query
조회 수: 12 (최근 30일)
이전 댓글 표시
MATLAB keeps skipping my query for an input only for the 3rd and 4th input I'm asking for... Not sure why. Any help? It skips directly after BM_str input down to the answer = inputdlg.
BW_str = input('Select water blank wells.\n', 's');
BW = str2num(BW_str);
BWa = mean(BW);
BM_str = input('Select media blank wells.\n', 's');
BM = str2num(BM_str);
BMa = mean(BM);
%Subtract blank from standards
SW_str = input('Input water standard to subtract blank.\n', 's');
SW = str2num(SW_str);
SW2 = SW-BWa;
SM_str = input('Input media standard to subtract blank.\n', 's');
SM = str2num(SM_str);
SM2 = SM-BMa;
SM2 = SM2';
%Select X values
prompt = {'Enter X values','Enter units'};
dlgtitle = 'X-axis values';
dims = [1 35];
definput = {'[40 20 10 5 2.5 1.25 0.625]','[RNA] (ng)'};
answer = inputdlg(prompt,dlgtitle,dims,definput);
댓글 수: 5
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!