【问题标题】:Unable to resolve the name 'handels.EditField'无法解析名称 \'handels.EditField\'
【发布时间】:2022-12-10 11:40:21
【问题描述】:

这个功能告诉我 无法解析名称“handels.EditField”。 我正在使用 Matlab App Designer

            w = str2double(get(handels.EditField,"string"));
            h = str2double(get(handels.EditField2,"string"));
            app.m3= imresize(app.m1, [w h]);
            cla(app.UIAxes_2);
            imshow(app.m3,'Parent',app.UIAxes_2);

我找不到问题出在哪里

【问题讨论】:

    标签: matlab resize image-resizing


    【解决方案1】:
    h = str2num(app.EditField.Value);
    w = str2num(app.EditField2.Value);
    

    这是错误,因为图像调整器函数采用 Int 而不是 Double。

    【讨论】:

      猜你喜欢
      • 2022-07-07
      • 2017-05-30
      • 2020-05-01
      • 2016-06-23
      • 1970-01-01
      • 2022-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多