function plotp()
p = linspace(-3,3);
n1i = 2.*p + 2;
a1i = satlin(n1i);
n2i = p-1;
a2i = satlin(n2i);
n12 = a1i-a2i;
a12 = purelin(n12);
tiledlayout(3,2);
nexttile, plot(p,n1i), legend('n_1^1','Location','northwest')
nexttile, plot(p,a1i), legend('a_1^1','Location','northwest')
nexttile, plot(p,n2i), legend('n_2^1','Location','northwest')
nexttile, plot(p,a2i), legend('a_2^1','Location','northwest')
nexttile, plot(p,n12), legend('n_1^2','Location','northwest')
nexttile, plot(p,a12), legend('a_1^2','Location','northwest')
end
lkvsfkvs.PNG
lsfs;fldd;f.PNG

댓글 수: 3

KSSV
KSSV 2019년 11월 11일
What you want to do? What is nexttile ???
Yasir Ghazi
Yasir Ghazi 2019년 11월 11일
lkvsfkvs.PNG
Ankit
Ankit 2019년 11월 11일
what kind of error you are getting? can you please put the screenshot of the error in your question?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 11월 11일
편집: Walter Roberson 2019년 11월 11일

0 개 추천

tiledlayout() was introduced in R2019b but you have an earlier MATLAB version. You will need to use subplot()

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

2019년 11월 11일

편집:

2019년 11월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by