matlab基础
快走啊
这个作者很懒,什么都没留下…
展开
-
matlab 读写excel数据 计算股票振幅收益率
作业内容:将一只股票10天的日线数据(最高价、最低价、开盘价、收盘价)保存到excel文件中,在matlab中用xlsread读入到数组中,然后计算每日振幅和收益率,后将计算结果用xlswrite保存到原excel文件的最后两列。代码如下:%xlsread[num,txt,raw]= xlsread('matlab 3.0.xlsx')dates = raw(2:end,1)data = cell2mat(raw(2:end,2:end)) %将元胞转换为矩阵fts1 = fint原创 2022-05-18 16:01:26 · 2975 阅读 · 0 评论 -
matlab找两个数组的差集,要求不重复
matlab查找数组差集原创 2022-05-18 08:26:36 · 887 阅读 · 0 评论