Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

lab 2 / Untitled4

.m
Скачиваний:
8
Добавлен:
09.03.2021
Размер:
407 б
Скачать
x= -2:0.1:6;
[y,p]= fun_sam(x); %function for my two equations%
% plot of the two graphs%
figure;
hold on;
subplot(2,1,1);
plot(x,y,'k-.')
grid on;
title('1st graphs on one axis')
xlabel('X_axis')
ylabel('Y_axis')
legend({'y(x)'},'Location','best')
subplot(2,1,2);
plot(x,p,'r:')
grid on;
title('2nd graphs on one axis')
xlabel('X_axis')
ylabel('Y_axis')
legend({'p(x)'},'Location','best')
Соседние файлы в папке lab 2