matlab运行结果Input argument "A" is undefined.function[Ax]=F_tj(A,m0)%定义函数%模糊统计,m0划分区间个数[n,m]=size(A);%获得矩阵的行列数Amin=A(1,1);%A的最小值Amax=A(1,2);%A的最大值for(i=1:n)if(A(i,1)>A(i,2))x=A(i,2);A(i
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/29 07:24:47
![matlab运行结果Input argument](/uploads/image/z/6837588-36-8.jpg?t=matlab%E8%BF%90%E8%A1%8C%E7%BB%93%E6%9E%9CInput+argument+%22A%22+is+undefined.function%5BAx%5D%3DF_tj%28A%2Cm0%29%25%E5%AE%9A%E4%B9%89%E5%87%BD%E6%95%B0%25%E6%A8%A1%E7%B3%8A%E7%BB%9F%E8%AE%A1%2Cm0%E5%88%92%E5%88%86%E5%8C%BA%E9%97%B4%E4%B8%AA%E6%95%B0%5Bn%2Cm%5D%3Dsize%28A%29%3B%25%E8%8E%B7%E5%BE%97%E7%9F%A9%E9%98%B5%E7%9A%84%E8%A1%8C%E5%88%97%E6%95%B0Amin%3DA%281%2C1%29%3B%25A%E7%9A%84%E6%9C%80%E5%B0%8F%E5%80%BCAmax%3DA%281%2C2%29%3B%25A%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BCfor%28i%3D1%3An%29if%28A%28i%2C1%29%3EA%28i%2C2%29%29x%3DA%28i%2C2%29%3BA%28i)
matlab运行结果Input argument "A" is undefined.function[Ax]=F_tj(A,m0)%定义函数%模糊统计,m0划分区间个数[n,m]=size(A);%获得矩阵的行列数Amin=A(1,1);%A的最小值Amax=A(1,2);%A的最大值for(i=1:n)if(A(i,1)>A(i,2))x=A(i,2);A(i
matlab运行结果Input argument "A" is undefined.
function[Ax]=F_tj(A,m0)%定义函数
%模糊统计,m0划分区间个数
[n,m]=size(A);%获得矩阵的行列数
Amin=A(1,1);%A的最小值
Amax=A(1,2);%A的最大值
for(i=1:n)
if(A(i,1)>A(i,2))x=A(i,2);A(i,2)=A(i,1);A(i,1)=x;end%A的最小值
if(A(i,1)Amax)Amax=A(i,2);end%A的最大值
end
x=Amin:(Amax-Amin)/m0:Amax;
Ax=[];
for(k=1:m0+1)Ax(k)=0;
for(i=1:n)if(x(k)>=A(i,1) & x(k)
matlab运行结果Input argument "A" is undefined.function[Ax]=F_tj(A,m0)%定义函数%模糊统计,m0划分区间个数[n,m]=size(A);%获得矩阵的行列数Amin=A(1,1);%A的最小值Amax=A(1,2);%A的最大值for(i=1:n)if(A(i,1)>A(i,2))x=A(i,2);A(i
1 新建m文件,把函数 function [Ax]=F_tj(A,m0)贴进去保存;
2 然后输入A,m0,直接调用[Ax]=F_tj(A,m0)即可.