Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
clear
disp('1 - funckcja sin(x)')
disp('2 - funckcja cos(x)')
disp('3 - funckcja tg(x)')
disp('4 - funckcja ctg(x)')
d=input('jaka funkcje chcesz otrzymac = ');
while d<1 || d>4 || d~=round(d)
disp('zle podana wartosc')
disp('podaj wartosc jeszcze raz ')
disp('1 - funckcja sin(x)')
disp('2 - funckcja cos(x)')
disp('3 - funckcja tg(x)')
disp('4 - funckcja ctg(x)')
d=input('jaka funkcje chcesz otrzymac= ');
end
a=input('podaj poczatek przedzialu = ');
b=input('podaj koniec przedzialu = ');
x=a:0.1:b;
switch d
case 1
y=sin(x);
plot (x,y,'r')
title('wykres sin(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('sin(x)')
grid
case 2
y=cos(x);
plot (x,y,'r')
title('wykres cos(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('cos(x)')
grid
case 3
y=tan(x);
plot (x,y,'r')
title('wykres tg(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('tg(x)')
grid
case 4
y=cot(x);
plot (x,y,'r')
title('wykres ctg(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('ctg(x)')
grid
otherwise
end
%2222222222222222222222222222222222222222222222222222222222222222222
clc
clear
x=0:0.1:2*pi;
y=sin(x);
y1=cos(x);
plot(x,y,'b',x,y1,'r')
title('wykresy funkcji sin(x) i cos(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('sin(x)','cos(x)')
grid
%2222222222222222222222222222222222222222222222222222222222222222222
clc
clear
x=0:0.1:2*pi;
y=sin(x);
A=input('podaj wspolczynnik 0<A<=10 A= ');
while A>10 || A<=0
A=input('podaj wspolczynnik 0<A<=10 A= ');
end
y1=A*sin(x);
plot(x,y,'r',x,y1,'b')
title('wykresy funkcji sin(x) i Asin(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('sin(x)','Asin(x)')
grid
%222222222222222222222222222222222222222222222222222222222222222222222222
clc
clear
disp('program wyswietla 4 funkcje w 4 rysunkach na jednym oknie ')
x=0:0.1:2*pi;
x2=-0.45*pi:0.1:0.45*pi;
x3=-0.05*pi:0.1:0.95*pi;
y=sin(x);
y1=cos(x);
y2=tan(x2);
y3=cot(x3);
subplot(2,2,1)
plot(x,y,'c')
title('wykres funkcji sin(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('sin(x)')
grid
subplot(2,2,2)
plot(x,y1,'r')
title('wykres funkcji cos(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('cos(x)')
grid
subplot(2,2,3)
plot(x2,y2,'b')
title('wykres funkcji tg(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('tg(x)')
grid
subplot(2,2,4)
plot(x3,y3,'c')
title('wykres funkcji ctg(x)')
xlabel('argumenty')
ylabel('wartosci')
legend('ctg(x)')
grid
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team