Can anyone help me implement skewed tent map? T= x/a , if x is between 0 to 0.5 ;;;;;; T= (1-x)/(1-a) , if x is between 0.5 to 1.
5 views (last 30 days)
Show older comments
I need to map it a plot for it.
0 Comments
Accepted Answer
Image Analyst
on 14 Oct 2014
Did you try something like this
workspace;
fontSize = 25;
a = .2; % Whatever you want.
numberOfPoints = 100; % Some even number.
halfWay = numberOfPoints / 2;
x = linspace(0, 1, numberOfPoints);
T1 = x(1 : halfWay)/a;
T2 = (1-x(halfWay+1 : numberOfPoints))/(1-a);
T = [T1, T2];
plot(x, T, 'bo-', 'LineWidth', 2);
xlabel('x', 'FontSize', fontSize);
ylabel('T', 'FontSize', fontSize);
caption = sprintf('Tent Map for a = %.3f', a);
title(caption, 'FontSize', fontSize);
grid on;
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
3 Comments
Image Analyst
on 14 Oct 2014
I have no idea what a tent map or skewed tent map is. I simply plotted the equation you gave. Is my plot not showing the equation you gave? http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!