关于matlab:MATLAB学习笔记

3次阅读

共计 339 个字符,预计需要花费 1 分钟才能阅读完成。

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()
正文完
 0