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
% ==============================================================================
|