MATLAB常用函数
发布日期:2021-05-13 21:00:14 浏览次数:21 分类:精选文章

本文共 612 字,大约阅读时间需要 2 分钟。

1.importdata()

������importdata���������������������������������

a = importdata('test.txt')  
b = a(3)
c = a(1,2)

test.txt���������

1.1 2.2 3.3

4.4 5.5 6.6

2.zeros()

������������������������������

a=zeros(3,4)  
b=zeros(3)

3.subplot()

������������������������������������

���������

subplot(2,2,1)

���2x2���������������������1���������������������������

4.randn()���rand()

���������������

randn(4)  
randn([100,1])

rand������0-1������������������������

5.save���load

���������������MAT������

x1=-0.5:0.01:0.5; save x1

���������������MAT���������

load x1.mat

������

load x1

������������������������������������������

上一篇:MATLAB--卡尔曼滤波程序
下一篇:C++ 查询电脑计数

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年04月19日 09时41分55秒