what's wrong with my program?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247738/lkvsfkvs.png)
![lsfs;fldd;f.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247739/lsfs;fldd;f.png)
3 comentarios
Ankit
el 11 de Nov. de 2019
what kind of error you are getting? can you please put the screenshot of the error in your question?
Respuestas (1)
Walter Roberson
el 11 de Nov. de 2019
Editada: Walter Roberson
el 11 de Nov. de 2019
tiledlayout() was introduced in R2019b but you have an earlier MATLAB version. You will need to use subplot()
0 comentarios
Ver también
Categorías
Más información sobre Subplots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!