scatter plot with non-linear axis
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi together!
I have been trying for a while now to make a certain graph, but just do not succeed :-(
Here is what I need:
A scatter plot, where the y axis is linear scaled: y = [0.7, 0.9] and the x-axis is non-linear scaled: x = [1/128, 1/64, 1/32, 1/16, 1/8, 1/4, 1/2, 1, 2]
Could anybody PLEASE help me??
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 11월 17일
x=1:10
y=sin(x)
x1=1./2.^(-1:length(x)-2),
scatter(x1,y)
댓글 수: 6
Walter Roberson
2012년 11월 17일
set(gca, 'XScale', 'log')
This will give you log 10, but log 2 is a linear multiple of log 10.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!