File: pointReductionTest.m

package info (click to toggle)
matlab2tikz 0.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 792 kB
  • ctags: 320
  • sloc: objc: 4,948; makefile: 42
file content (34 lines) | stat: -rw-r--r-- 831 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% ==============================================================================
function pointReductionTest()

  breakTime = 5.0;

  testPlots = {@testPlot1, ...
              };
               %@testPlot2};

  for testPlot = testPlots
      testPlot();
      'a'
      %pause(breakTime);
      %pointReduction2d(0.1);
      pause(breakTime);
      'b'
  end

  close all;

end
% ==============================================================================
function testPlot1()
  x = -pi:pi/1000:pi;
  y = tan(sin(x)) - sin(tan(x));
  plot(x,y,'--rs');
end
% ==============================================================================
function testPlot2()
  x = -pi:pi/1000:pi;
  y = exp(tan(sin(x)) - sin(tan(x)));
  semilogy(x,y,'--rs');
end
% ==============================================================================