I wanna ask if anyone can help , I have a non linear graph , which I want to make it linear can I do it using Matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
my graph looks like a random graph , it's totally non linear , so how can I make it linear for processing it .
댓글 수: 2
William Rose
2022년 6월 3일
@Image Analyst makes me laugh!
@Abderezak, you will get good help here, but you will need to be more specific.
답변 (2개)
Sam Chak
2022년 6월 3일
Since you didn't provide the data for the random-looking graph, this maybe not what you are looking for, but it is a very simple example for turning a nonlinear graph into a linear one.
x = -10:0.1:10;
y = x.^2;
X = log(x);
Y = 2*X;
subplot(2,1,1)
plot(x, y, 'linewidth', 1.5)
grid on
xlabel('x')
ylabel('y')
title('y = x^2')
subplot(2,1,2)
plot(X, Y, 'linewidth', 1.5)
grid on
xlabel('log(x)')
ylabel('log(y)')
title('log(y) = 2*log(x)')
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!