在学习师兄师姐的matlab程序时,发现用我的matlab2020a运行不出来。孩子不能认输,还要处理实验数据呐。。
问题1
老版与新版的变量读取问题
解决:上面这段话告诉我们,点索引reflection失败了。
直接打开要索引的变量,找到要索引的,用中括号数字索引。改为distance=abs(x_zheng(num)-reflection{7});
问题2
老版与新版的qamdemod与modem.qamdemod
直接贴解决的代码了
% de_reflection=modem.qamdemod('M',M,'PhaseOffset',0,'SymbolOrder','Gray','OutputType','Bit');
% panjue_junheng=demodulate(de_reflection,junheng);
panjue_junheng=qamdemod(junheng,M,'gray','OutputType','bit'); % 试改,成功
结果:
修改好上边的问题,可以正常运行啦!