MATLAB:Error using max 5
x={84.3,86.4,85.2,87.1,83.5,84.8,85.0,85.3,85.3,85.2,82.3,84.7,83.6;90.0,89.5,88.6,88...
x={84.3,86.4,85.2,87.1,83.5,84.8,85.0,85.3,85.3,85.2,82.3,84.7,83.6;90.0,89.5,88.6,88.9,88.9,90.4,89.3,89.5,88.9,89.1,89.5,89.4,89.8;86.7,87.6,88.3,85.3,80.3,82.4,83.4,85.4,86.3,85.3,89.0,87.3,87.2};求最大值
展开
2个回答
展开全部
可这样:
x={84.3,86.4,85.2,87.1,83.5,84.8,85.0,85.3,85.3,85.2,82.3,84.7,83.6;90.0,89.5,88.6,88.9,88.9,90.4,89.3,89.5,88.9,89.1,89.5,89.4,89.8;86.7,87.6,88.3,85.3,80.3,82.4,83.4,85.4,86.3,85.3,89.0,87.3,87.2};a=cell2mat(x);b=max(max(a))
结果是:
b =
90.4000
x={84.3,86.4,85.2,87.1,83.5,84.8,85.0,85.3,85.3,85.2,82.3,84.7,83.6;90.0,89.5,88.6,88.9,88.9,90.4,89.3,89.5,88.9,89.1,89.5,89.4,89.8;86.7,87.6,88.3,85.3,80.3,82.4,83.4,85.4,86.3,85.3,89.0,87.3,87.2};a=cell2mat(x);b=max(max(a))
结果是:
b =
90.4000
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询