matlab与数学学习

2025-01-06 23:50:37
推荐回答(2个)
回答1:

《精通matlab6.5》或《精通matlab7.0》等入门级的书籍。
例子
【1.1】高数z=x^2/4-y^2/9,马鞍形的图形。只需
>> ezmesh('x^2/4-y^2/9')
即可得到三维图形
http://hi.baidu.com/chemical%5Fengineering/album/item/33c862d0940b158ea0ec9c9d.html

【1.2】积分:y=∫x^2*ln(x)dx

>> y=int('x^2*log(x)')
y=1/3*x^3*log(x)-1/9*x^3

...
【4】线性代数,求矩阵A的逆。
A =

[ a11, a12, a13]
[ a21, a22, a23]
[ a31, a32, a33]

>> inv(A)

ans =

[ (a22*a33-a23*a32)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), -(a12*a33-a13*a32)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), (a12*a23-a13*a22)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22)]
[ -(a21*a33-a23*a31)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), (a11*a33-a13*a31)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), -(a11*a23-a13*a21)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22)]
[ (a21*a32-a22*a31)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), -(a11*a32-a12*a31)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22), (a11*a22-a12*a21)/(a11*a22*a33-a11*a23*a32-a21*a12*a33+a21*a13*a32+a31*a12*a23-a31*a13*a22)]

很方便了。

回答2:

什么东西啊,搞不懂