代码搜索:plot
找到约 10,000 项符合「plot」的源代码
代码结果 10,000
www.eeworm.com/read/417350/10993556
txt 10-37.txt
%例10-37 tic和toc函数的使用举例。
%在命令窗口中输入如下命令,并按Enter键确认。
>> for n = 1:100
A = rand(n,n);
b = rand(n,1);
tic
x = A\b;
t(n) = toc;
end
>> plot(t)
>> t=toc
t =
3.44
www.eeworm.com/read/417309/10995537
txt 05-21.txt
% find the minimum of the function f(x)=x^3+a*x^2+b*x+c
function [x0,y] = funmin(a,b,c,x1,x2)
options = optimset('Display','off');
[x0,y] = fminbnd(@poly3,x1,x2,options);
function y=poly3(x)
www.eeworm.com/read/417309/10995561
txt 05-17.txt
>> f_h=@(x)log(x)+sin(x)-2;
>> [x1,y1]=fzero(f_h,6)
>> fplot(f_h,[x1-2,x1+2])
>> hold on
>> plot(x1,y1,'k*')
www.eeworm.com/read/417309/10996119
txt 09-10.txt
>> x=0:0.5:20;
>> y=exp(x);
>> subplot(2,2,1);
>> plot(x,y);
>> title('plot');
>> subplot(2,2,2);
>> semilogx(x,y);
>> title('semilogx');
>> subplot(2,2,3);
>> semilogy(x,y);
>> title('semil
www.eeworm.com/read/271414/10997824
m plotfigure.m
L1_best=[];
L2_best=[];
plot(L1_best,'g:');
hold on
plot(L2_best,'r');
xlabel('generation');
ylabel('Fitness');
legend('AS(柯闷计=50)','AS(柯闷计=126)');
www.eeworm.com/read/271244/11002241
m new2.m
% ----------------------------------------
% ----- Program to plot the signal example
% ----------------------------------------
t=0:1023;t=t';
w=2*pi/32;
dw=.1*w;
x=exp(i*w*t);
x1=1+.7*ex
www.eeworm.com/read/271244/11002260
m caldspeco.m
% --- CALDSPECO calculates damping spectrums ------- %
% from IMF for the specified files and plot them.
%
% Non MATLAB Library routines used are:
% NSPABD and FDAMP.
% Required data files: 'cr
www.eeworm.com/read/271142/11005442
m exa080901_dct1.m
%--------------------------------------------------------------------------
% exa080901_dct1.m, for example 8.9.1
% to test dct.m;
% 调用该程序的主程序是exa080901_dct1_test.m,
%----------------------------
www.eeworm.com/read/271142/11005444
m exa080901_dct1_test.m
%---------------------------------------------------------------------------
% exa080901_dct1_test, for exa8.9.1
% to call function exa080901_dct1;
%------------------------------------------------
www.eeworm.com/read/417000/11007577
m exp2_4_.m
close all
clc
clear
%定义时间范围
t=[0:pi/20:9*pi];
hold on %允许在同一坐标系下绘制不同的图形
plot(t,sin(t),'r:*')
plot(t,cos(t))
plot(t,-cos(t),'k')
grid on %在所画出的图形坐标中添加栅格,注意用在plot之后
hold off %覆盖旧图