MATLAB学习笔记
文章目录
Keywords
ans,i、j,Inf,eps(2.2204e-16),NaN,pi,~=(不等于),end(数组中最后一个)
- @ : can be used to pass a function to another
function [y] = xy_plot(input, x)
y = input(x); plot(x, y, 'r--');
xlabel('x'); ylabel('f(x)');
end
==>xy_plot(@sin, 0:0.01:2*pi);Operations
常用函数
- who:variables in workspace
- whos:variable information in workspace
- disp():显示字符串。
- tic、toc计算中间代码执行时间,预分配空间执行效率更高。
- Strlength()

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论