用MATLAB产生了一组数据,在console输出没问题。但是在expressions中数组值不正确
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你仔细检查一下代码中读入这个dat文件的时候使用的数据格式是什么样的,matlab默认的数据格式是dobule,而我看你定义的数组input使用的格式是float
直接编译正确是指什么啊?你在代码中直接定义一个double的常量数组,然后在变量窗口中查看这个数组,expression窗口中的值显示正确么?