How to doI plot F(x) = [1 -(10/x)]/[1-(100/x^2)] for X ranging from 100 to 1100 at an interval of 50?

조회 수: 1 (최근 30일)
F(x)= [1- (10/x)]/[1-(100/x^2)]

답변 (2개)

Jan
Jan 2021년 5월 10일
편집: Jan 2021년 5월 10일
x = 100:50:1100;
plot(x, (1 - (10 ./ x)) ./ (1 - (100 ./ x.^2)));
With some basic maths skills, a simplification is easy:
plot(x, 1 ./ (1 + (10 ./ x))
% Or better:
plot(x, x ./ (x + 10))

Stephan
Stephan 2021년 5월 10일
F = @(x) (1-(10./x))./(1-(100./x.^2));
x_vals = 100:50:1100;
plot (x_vals, F(x_vals))

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by