• <li id="00i08"><input id="00i08"></input></li>
  • <sup id="00i08"><tbody id="00i08"></tbody></sup>
    <abbr id="00i08"></abbr>
  • 新聞中心

    EEPW首頁 > 嵌入式系統 > 設計應用 > Matlab文件操作示例

    Matlab文件操作示例

    作者: 時間:2012-02-11 來源:網絡 收藏

    操作示例

    問題1:如何在matlab中讀取數據將如下格式的數據data.txt裝載到內存中,并生成一個二維數組1	0.0002	22	0.0004	33 	0.3	4輸入命令“load -ascii data.txt”,此時數組data已經存在,輸入命令“data”可以察看data>> load -ascii data.txt>> datadata =1.0000    0.0002    2.00002.0000    0.0004    3.00003.0000    0.3000    4.0000>> 問題2:如何將數組的數據保存到數據文件?Use the Save command.Save the data in ASCII form using the save 
    command with the -ascii option. For example,A = rand(4,3);save temp.dat A -asciicreates an ASCII file called temp.dat containing1.3889088e-001  2.7218792e-001  4.4509643e-0012.0276522e-001  1.9881427e-001  9.3181458e-0011.9872174e-001  1.5273927e-002  4.6599434e-0016.0379248e-001  7.4678568e-001  4.1864947e-001


    關鍵詞: 文件 Matlab

    評論


    相關推薦

    技術專區

    關閉
    主站蜘蛛池模板: 黄冈市| 乌鲁木齐市| 蓬溪县| 达州市| 姚安县| 双峰县| 弥勒县| 陕西省| 石景山区| 镇原县| 西宁市| 务川| 德保县| 宾阳县| 闻喜县| 理塘县| 常山县| 海兴县| 资阳市| 射阳县| 阳曲县| 开封县| 鄂州市| 南丹县| 满城县| 灵石县| 庐江县| 临桂县| 泗洪县| 榆树市| 繁峙县| 达尔| 铅山县| 武强县| 博白县| 伊春市| 井研县| 竹北市| 富蕴县| 北宁市| 拉萨市|