关于matlab: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()

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理