X=[26,63,1.2,0.29;29,57,0.7,0.09;54,26,1.8,0.58;2,84,1.9,1.98;3,27,29.4,3.11; 19,61显示? Error: File: D:\MAtlab\work\opt_shui_2.m Line: 1 Column: 6Missing variable or function.急!在线等!
问题描述:
X=[26,63,1.2,0.29;29,57,0.7,0.09;54,26,1.8,0.58;2,84,1.9,1.98;3,27,29.4,3.11; 19,61
显示? Error: File: D:\MAtlab\work\opt_shui_2.m Line: 1 Column: 6
Missing variable or function.
急!在线等!
答
你的矩阵定义 少了一个] 只能用因为状态下的逗号 要么就用空格 而且你最后一样少了2个数 矩阵每一行的列数应该是一致的 所以应该为X=[26,63,1.2,0.29;29,57,0.7,0.09;54,26,1.8,0.58;2,84,1.9,1.98;3,27,29.4,3.11; ...