如何在matlab的mod文件中编写sin平方x



如何在matlab中的mod文件中写入sin平方x?

我试过sin(x).*sin(x) and sin(x).^2。但它没有起作用。

上面写着

错误:lexer 无法识别字符

有人能帮忙吗?

经过快速搜索,我发现:

sin2θ=sin(θ)*sin(theta)

所以试试:

sin(x)*sin(x)

sin^2(x)= 1/2 - 1/2 cos(2x)

你可以试着用它。

最新更新