求助!MATLAB出错 Error using polar (line 70) THETA and RHO must be the same size.
\u5546\u6c64\u79d1\u6280-matlab\u56fe\u50cf\u5904\u7406-AI\u6280\u672f\u8d4b\u80fd\u56fe\u6587\u5f71\u50cf\uff0c\u70b9\u51fb\u8bd5\u7528产生此类错误的原因,就是theta向量长度(数据个数)与m向量长度(数据个数)不相等。为了避免错误可以用linspace()函数生成线性间距向量。修改后的代码
>> m=[0.97 0.91 0.82 0.74 0.66 0.59 0.54 0.49 0.45 0.41 0.22 0.15 0.11];
>> theta=linspace(0,1/6*pi,13); %13是m向量长度(数据个数)
>> polar(theta,m);
运行可以得到如下图像。
提示了数组大小不同。M大小是13. 检查一下 THETA的大小。
扩展阅读:e7-93 ... 出错load matlab ... 免费配置url地址 ... 获取app的url scheme ... url scheme大全 ... app内部url抓取 ... ae 汉化插件shine免费版 ... 如何把value换成0 ... matlab中出现untitled ...