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!