>> xi = 1:0.25:10;
>> xi = interp1(x,y,xi,'nearest');
>> xi = 1:0.25:10;
>> yi1 = interp1(x,y,xi,'nearest');
>> yi1 = interp1(x,y,xi,'linear');
>> yi1 = interp1(x,y,xi,'nearest');
>> yi2 = interp1(x,y,xi,'nearest');
>> yi3 = interp1(x,y,xi,'spline');
>> yi4 = interp1(x,y,xi,'pchip');
>> subplot(2,2,1)
>> plot(xi,yi1)
>> subplot(2,2,2)
>> plot(xi,yi2)
>> subplot(2,2,3)
>> plot(xi,yi3)
>> subplot(2,2,4)
>> plot(xi,yi4)
>> yi2 = interp1(x,y,xi,'linear');
>> subplot(2,2,2)
>> plot(xi,yi20)
未定义函数或变量 'yi20'。
 
是不是想输入:
>> plot(xi,yi2)
>> subplot(2,2,1)
>> plot(xi,yi1)

>> 

matlab 第二节

本节课体会了4种画线的不同之处

相关文章:

  • 2021-10-30
  • 2021-12-10
  • 2021-08-26
  • 2021-07-12
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2021-12-18
  • 2021-12-19
  • 2021-05-13
  • 2021-07-31
  • 2021-03-31
  • 2022-01-01
  • 2021-05-23
相关资源
相似解决方案