i want to plot a graph:
y axis: (0.00062539 - 1.000625*((Ri^2)/(R^2)))
x-axis: R/Ri.
Ri is constant and R is a variable.
which command should i use?

Antworten (1)

Image Analyst
Image Analyst am 10 Dez. 2020

0 Stimmen

Try this:
Ri = 1; % Whatever.
R = linspace(-0.0000000010, 0.0000000010, 2000) / Ri; % Whatever range you want.
y = 0.00062539 - 1.000625*(Ri^2 ./ R.^2);
plot(R, y, 'b-', 'LineWidth', 2);
grid on;
title('y = 0.00062539 - 1.000625*(Ri^2 ./ R.^2)', 'FontSize', 20);
xlabel('R/Ri', 'FontSize', 20);
ylabel('y', 'FontSize', 20);

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018a

Tags

Gefragt:

am 10 Dez. 2020

Beantwortet:

am 10 Dez. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by