필터 지우기
필터 지우기

plot a function of two variables

조회 수: 1 (최근 30일)
Robert
Robert 2015년 11월 23일
편집: Stephen23 2015년 11월 23일
For the life of me i can't get this to work Very simple
I want to say the following
RC = [0: 50,000];
RE = [ 0 : 50,000];
%Two vectors for the function
% here is my function
400 = RC/(10050 + 2*RE)
I want to see a plot that shows me all the ratios of RC and RE that satifiy the equation with in the %specified range of RC and RE
Please Help

답변 (1개)

Star Strider
Star Strider 2015년 11월 23일
A little algebra rearranges it to a simple linear equation:
RE = linspace(0, 50000, 500);
% Two vectors for the function
% here is my function:
% 400 = RC/(10050 + 2*RE)
RC = 400 .* (10050 + 2*RE);
figure(1)
plot(RE, RC)
grid
xlabel('RE')
ylabel('RC')

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by