How to update in hundreds m scripts a variable definition?

末鹿安然 提交于 2019-12-13 05:12:09

问题


We have in University hundreds of m scripts and we want to change/update some definitions of the variables. We want to change all the ufix(*), sfix(*) to fixdt(*,*). So I imagine that I could make an m-script that read the m-files and changes all the definitions. I think the difficult part of the script is to find for example a ufix(8)-unsigned 8bit and to change into fixdt(0,8). Do you know a function in Matlab which makes this automatic?

来源:https://stackoverflow.com/questions/31510356/how-to-update-in-hundreds-m-scripts-a-variable-definition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!