octave:1> 548*50/25+29
ans = 1125
octave:2> a=548*50/25+29
a = 1125
octave:3> 2*sin(pi/4)+3cos(pi/2)
parse error:
syntax error
>>> 2*sin(pi/4)+3cos(pi/2)
^
octave:3> 2*sin(pi/4)+3*cos(pi/2)
ans = 1.4142
octave:4> help
For help with individual commands and functions type
help NAME
(replace NAME with the name of the command or function you would
like to learn more about).
For a more detailed introduction to GNU Octave, please consult the
manual. To read the manual from the prompt type
doc
GNU Octave is supported and developed by its user community.
For more information visit http://www.octave.org.
octave:5> look image
error: 'look' undefined near line 1 column 1
octave:5> lookfor image
!!! OUT OF TIME !!!
octave:5> lookfor
error: 'str' undefined near line 51 column 16
error: called fr
matlab简单测试
最新推荐文章于 2024-07-27 17:28:42 发布
这个MATLAB测试涵盖了基本的算术运算、变量赋值、三角函数、错误处理、帮助查询、数组创建、矩阵操作等内容。通过示例展示了如何进行乘除、加减、求余、对数、指数、取整、矩阵乘法等操作,并演示了如何使用输入、保存等功能。
摘要由CSDN通过智能技术生成