%İlk olarak 2 fonksiyonu yazıyoruz.
x=0:0.01:1; %aralık belirliyoruz.
y1=(sin(pi*x)/(pi))+(sin(3*pi*x)/(3*pi));
y2=(sin(pi*x)/(pi))+(sin(3*pi*x)/(3*pi))+(sin(5*pi*x)/(5*pi));
plot(x ,y1,'r',x ,y2,'b');
xlabel('X değerleri');
ylabel('Y değerleri');
%sağ üst köşeye açıklama için bunu yazıyoruz.
legend('f1 fonksiyonu','f2 fonksiyonu');
title('2 fonksiyonu tek grafikte yazdırma.')
Cite As
Arthur Matlabus (2026). Two Function one graph (https://www.mathworks.com/matlabcentral/fileexchange/167396-two-function-one-graph), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
