NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

clc = command windows temizler
clear = workspace siler
sinüs (açı değeri derece cinsinden) - sind - sind(30)
kosinüs(açı değeri derece cinsiden) - cosd - cosd(60)
eksponansiyel (e-üzeri x) - exp - exp(1)
doğal logaritma (ln x) - log - log(exp(1))
2 tabanında logaritma (log2x) - log2 - log2(16)
10 tabanında logaritma (log10x) - log10 - log10(10)
karekök - sqrt - sqrt(25)
n. dereceden kök - nthhroot - nthroot(8,3)
mutlak değer (|x|) - abs - abs(-1)

[1 3 4] -Satır vektörü
vektörler= sadece bir sütın veya sdaece bir satırdan oluşan dizilerdir
matrisler= birden fazla satır ve sütun sayısına sahiptirler

zeros(n): n x n boyutunda, sıfırlarda oluşan matris
zeros(n,m): n x m boyutunda, 0'lardan oluşan matris
ones(n): n x n boyutunda, 1'lerden oluşan matris
ones(n,m): n x m boyutunda, 1'lerden oluşan matris
eye(n): n x n boyutunda birim matris
eye(n,m): n x

input= kullanıcıdan veri girişi alma

yas=input('Lütfen yaşını gir=')
isim=input('Lütfen isminizi giriniz=','s')

disp ve fprintf= ekrana birşey yazdırma

tahmin=input('Lütfen bir sayı giriniz:');
disp(['Girdiğiniz Sayı: ' num2str(tahmin) ' dir.']);

karakter='d';
isim='deniz';
tamsayi=25;
ondalikliSayı=3.1416;
fprintf('Tanimlanan Karakter = %c', karakter);
Tanimlanan Karakter=d
fprintf('Tanimlanan Karakter Dizisi = %s n', isim);
Tanimlanan Karakter Dizisi = deniz
fprintf('Tanimlanan Tamsayi = %d n',tamsayi);
Tanimlanan Tamsayi=25
fprintf('Tanimlanan Ondalikli Sayi = %f n',ondalikliSayi);
Tanimlanan Ondalikli Sayi =

fprintf
%c : deger 'in tek bir karakter olduğunu,
%s : deger 'in bir karakter dizisi (String) olduğunu,
%d : deger 'in bir tamsayı olduğunu,
%f : deger 'in bir ondalıklı sayı olduğunu gösterir.
%g : deger 'i mümkün olan en kompakt forma sokar

MATLAB'de programlama genel olarak iki yolla yapılır:
> Komut satırında (inline) programlama
>

== Eşit mi?
~= Eşit değil mi?
> büyük mü?
>= büyük veya eşit mi?
< küçük mü?
<= küçük veya eşit mi?

Mantıksal operatörler de ilişkisel operatörler gibi sonuç olarak 1 ( bir) (true) veya 0 (sıfır) (false) değerlerini üretirler.

0<=x<9 matematiksel ifadesinin matlab'deki karşılığı:
(0<=x) && (x<9)

if koşul if koşul if koşul1
işlemler işlem1 işlem1
end else elseif koşul2
işlem2 işlem2
end else
işlem3
end

a && b ----- VE (AND)
a||b -------- VEYA (OR)
~a ----------- DEĞİL (NOT)

ayNo=input('Bir Ay Numarası Giriniz (1-12)= ');
switch ayNo
case {1,3,5,7,8,10,12}
disp('Bu ay 31 günden oluşur.');
case 2
disp('Bu ay 28 günden oluşur.');
case {

fix(x)=0'a doğru en yakın sayıya yuvarlar.
round(x)=Kendisine en yakın sayıya yuvarlar.
ceil(x)=Pozitif sonsuz yönündeki en yakın sayıya yuvarlar.
mod(x,y)=x sayısının y sayısına bölümünden kalanı verir.

rand(n,m) fonksiyonu MATLAB'de nxm boyutunda ve elemanları rastgele sayılar olan bir matris oluşturur. Oluşturulan bu rastgele sayılar 0 ile 1 arasındadır ve düzgün dağılımlıdır. Üretilmek istenen matris kare bir matris ise yani n satır sayısı, m sütun sayısına eşit ise rand(n,n) yerine sadece rand(n) kullanılabilir. 0 ile 1 arasında rastgele ondalıklı bir skaler sayı üretmek için ise rand(1) fonksiyonunun kullanımı yeterlidir.

a=rand(1,10)
b=fix(rand(3,5))
c=round(40*rand(5,3))
d=40*round(rand(5,3))
e=round(10+40*rand(5,3))
f=10+40*round(rand(5,3))
g=round(50+250*rand(3,4))
h=round(1000*rand(1))
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.