I=imread('C:\Users\stariqp\Desktop\c5.jpg');
rmin=100;
rmax=400;
这些是我的函数的输入,我在命令窗口中给出,当我调用我的函数时,出现错误“输入参数”rmin“未定义”。该函数是.m文件中的第一行。
function [ci,cp,out]=thresh(I,rmin,rmax)
答案 0 :(得分:0)
将该函数保存到名为thresh.m
的单独文件中。然后在主函数中运行
I=imread('C:\Users\stariqp\Desktop\c5.jpg');
rmin=100;
rmax=400;
[ci,cp,out]=thresh(I,rmin,rmax)