AndroidHocam- Android Dersleri, Uygulama ve Örneklerle Birlikte

Posted by Admin On Monday, August 26, 2013 0 comments
Merhabalar, bu yazımda size androidhocamı tanıtmak istiyorum. Androidhocam son derece kaliteli ve detaylı android dersleri içermektedir. Bu dersler özellikte resimlerle ve örneklerle desteklenmiş, bu durum Androidhocam hem çok çekici hem de çok öğretici kılıyor. Androidhocam a teşekkürler. Ayrıca androidhocamda hiç reklam yok!. Reklamsız bir eğitici-öğretici blog için tekrar androidhocama teşekkürler.
Peki androidhocamda nasıl dersler olacak neler öğrenicez:
Basitten karmaşığa doğru hemen hemen her konudan yazmaya çalışıyor Androidhocam.
Mesela şu an iki tane ders yayında, incelemenizi öneririm inceleyince göreceksiniz. gerçekten çok iyiler! Tıklayın, inceleyin ve neden Androidhocamı tavsiye ettiğimi görün.
READ MORE

SCRIPT FILES

Posted by Admin On Monday, July 22, 2013 0 comments
A script is a sequence of ordinary statements and functions used at the command prompt level. A script is invoked the command prompt level by typing the file-name or by using the pull down menu. Scripts can also invoke other scripts.
The commands in the Command Window cannot be saved and executed again. Also, the Command Window is not interactive. To overcome these difficulties, the procedure is first to create a file with a list of commands, save it and then run the file. In this way, the commands contained are executed in the order they are listed when the file is run. In addition, as the need arises, one can change or modify the commands in the file; the file can be saved and run again. The files that are used in this fashion are known as script files. Thus, a script file is a text file that contains a sequence of MATLAB commands. Script file can be edited (corrected and/or changed) and executed many times.

Creating and Saving a Script File
Any text editor can be used to create script files. In MATLAB, script files are created and edited in the Editor/ Debugger Window. This window can be opened from the Command Window. From the
Command Window, select File, New and then M-file. Once the window is open, the commands of the script file are typed line by line. The commands can also be typed in any text editor or word processor program and then copied and pasted in the Editor/Debugger Window. The second type of M-files is the function file. Function file enables the user to extend the basic library functions by adding ones own computational procedures. Function M-files are expected to return one or more results. Script files and function files may include reference to other MATLAB toolbox routines.
MATLAB function file begins with a header statement of the form:
function (name of result or results) = name (argument list)

Before a script file can be executed it must be saved. All script files must be saved with the extension “.m”. MATLAB refers to them as M-files. When using MATLAB M-files editor, the files will automatically be saved with a “.m” extension. If any other text editor is used, the file must be saved with the “.m” extension, or MATLAB will not be able to find and run the script file. This is done by choosing Save As... from the File menu, selecting a location, and entering a name for the file. The names of user defined variables, predefined variables, MATLAB commands or functions should not be used to name script files.

Running a Script File
A script file can be executed either by typing its name in the Command Window and then pressing the Enter key, directly from the Editor Window by clicking on the Run icon. The file is assumed to be in the current directory, or in the search path.
Input to a Script File
There are three ways of assigning a value to a variable in a script file.
1. The variable is defined and assigned value in the script file.
2. The variable is defined and assigned value in the Command Window.
3. The variable is defined in the script file, but a specified value is entered in the Command Window when the script file is executed.

References:
1. 'Matlab An Introduction with Applications', Rao V. Dukkipati
2. 'Matlab Ders Notları', Hasan Korkmaz
3. http://mathworks.com 

If you have any question or need some help, leave a comment below.
READ MORE

ELEMENTARY MATH BUILT-IN FUNCTIONS

Posted by Admin On Sunday, July 21, 2013 0 comments
Matlab contains a number functions for performing computations, there are give in the tables below:

Table 1:Common math functions
Function Description
abs(x)
sqrt(x)
round(x)
fix(x)
floor(x)
ceil(x)
sign(x)

rem(x,y)

exp(x)

log(x)
log10(x)
Computes the absolute value of x.
Computes the square root of x.
Rounds x to the nearest integer.
Rounds (or truncates) x to the nearest integer toward 0.
Rounds x to the nearest integer toward –∞.
Rounds x to the nearest integer toward ∞.
Returns a value of –1 if x is less than 0, a value of 0 if x equals 0, and a value of 1 otherwise.
Returns the remainder of x/y. for example, rem(25, 4) is 1, and rem(100, 21) is 16. This function is also called a modulus function.
Computes ex, where e is the base for natural logarithms, or approximately 2.718282.
Computes ln x, the natural logarithm of x to the base e.
Computes log10 x, the common logarithm of x to the base 10.

Table 2: Exponential functions
Function Description

exp(x)
log(x)
log10(x)
sqrt(x)
Exponential (ex)
Natural logarithm
Base 10 logarithm
Square root

Table 3: Trigonometric and hyperbolic functions
Function
Description
sin(x)
cos(x)
tan(x)
asin(x)


acos(x)


atan(x)


atan2(y,x)




sinh(x)
cosh(x)
tanh(x)
asinh(x)
acosh(x)
atanh(x)
Computes the sine of x, where x is in radians.
Computes the cosine of x, where x is in radians.
Computes the tangent of x, where x is in radians.
Computes the arcsine or inverse sine of x, where x must be between –1 and 1.
The function returns an angle in radians between –π/2 and π/2.
Computes the arccosine or inverse cosine of x, where x must be between
–1 and 1. The function returns an angle in radians between 0 and π.
Computes the arctangent or inverse tangent of x. The function returns an
angle in radians between –π/2 and π/2.
Computes the arctangent or inverse tangent of the value y/x. The function
returns an angle in radians that will be between –π and π, depending on the
signs of x and y.
Computes the hyperbolic sine of x.
Computes the hyperbolic cosine of x.
Computes the hyperbolic tangent of x.
Computes the inverse hyperbolic sine of x.
Computes the inverse hyperbolic cosine of x.
Computes the inverse hyperbolic tangent of x.

Table 4: Round-off functions
Function
Description
Example
round(x)
Round to the nearest integer .
>> round(20/6)
ans = 3
fix(x)
Round towards zero .
>> fix(13/6)
ans = 2
ceil(x)
Round towards infinity
>> ceil(13/5)
ans = 3
floor(x)
Round towards minus infinity
>> floor(–10/4)
ans = –3
rem(x,y)
Returns the remainder after x is divided by y
>> rem(14,3)
ans = 2
sign(x,y)
Signum function. Returns 1 if x > 0, –1 if x < 0, and 0 if x = 0.
>> sign(7)
ans = 1

Table 5: Complex number functions
Function
Description
conj(x)


angle(x)
real(x)
imag(x)
abs(x)
Computes the complex conjugate of the complex number x. Thus, if
x is equal to a + ib, then conj(x) will be equal to a – ib.
Returns the phase angles, in radians, for each element of complex array Z.
Computes the real portion of the complex number x.
Computes the imaginary portion of the complex number x.
Computes the angle using the value of atan2(imag(x), real(x)); thus,
the angle value is between –π and π.

READ MORE

'The Conjuring' review: Best horror film of 2013

Posted by Admin On Friday, July 19, 2013 0 comments

Horror. Starring Vera FarmigaPatrick Wilson.Lili Taylor and Ron Livingston. Directed by James Wan. (R. 112 minutes.)
James Wan, for better or worse, seemed destined to be known as "the guy who made 'Saw' " - a film that ushered in the recent era of torture porn cinema.
Never mind that he's directed four movies since then. Never mind that in the hazy memory created by six diminishing sequels, people forget that the original "Saw" was a decent piece of filmmaking. (With less torture than you remember.) Wan was on track to endure a lifetime of sideways looks when he got introduced at parties.
If there's any fairness, he'll now be known as "the guy who made 'The Conjuring.' " The horror movie is artfully crafted from the first scares to the closing credits, with a bold retro vibe. But while its closest cousins are "The Exorcist" and the original "The Amityville Horror," Wan understands that modern audiences have short attention spans. The scares here begin in the pre-credits sequence, and barely let up until the end.
The throwback horror genre has been percolating for years in art houses - most notably with talented young Ti West's "The House of the Devil" and "The Innkeepers." Although West prefers a minimalist approach with a slow build, Wan aims for a more epic style.
"The Conjuring" introduces us quickly to Ed and Lorraine Warren (Patrick Wilson and Vera Farmiga), demonologists who believe in the occult, but understand that most events are easily explained hoaxes. Next we meet the Perron family - Carolyn, Roger and their five girls. With their 1970s clothing and sensibilities, the family is recognizable and realistic, with seasoned Ron Livingston and Lili Taylor in parental roles.
The Perrons have invested too much in an old house, which they gradually learn is haunted by spirits who mean to do them harm. They quickly hook up with the Warrens, who want evidence of the paranormal events before calling in an exorcist. The Perrons agree, after being told that these demons will follow them if they leave. The tale is tied together well - at no point does the plot require anyone to make idiotic decisions in the name of narrative momentum.
Wan's boldest move is his reliance on practical effects, which enhance the 1972 setting. A storm of crows looks more like something from "The Birds" than a modern movie apocalypse. Demons are clearly played by made-up actors. The postproduction digital effects bill couldn't have topped the low six figures - and yet nothing feels skimpy.
The weakness of "The Conjuring" is repetition. There are multiple sequences where a Perron lights the basement with matches, sleepwalks or investigates an armoire, and scenes start to blend together in the 112-minute run time. (The emotionally satisfying ending makes up for minor editing issues.)
Although the budget was likely modest, attention to detail is rich. The musical score sets a menacing tone and is also an effective tease, changing things up to avoid tipping off the audience. As action builds, the camera work seems to get a little shakier and rise to impossible angles, as if the demons are handling the cinematography as well.
The actors are all committed to Wan's vision, but Taylor stands out, giving everything to a complex and constantly shifting role. Writers Chad and Carey Hayes are also assets, resisting the horror movie urge to overexplain. They craft memorable scenes, but also include mystery, ensuring that new things will be discovered upon repeat viewings.
There are two kinds of people who won't like this film: those who hate all horror movies, and a less mature crowd not ready to experiment beyond the cheaper thrills of the "Paranormal Activity" or "Final Destination" templates. (That latter group doesn't trust mainstream movie reviews, so this glowing take should provide adequate warning.)
As the critic in charge of putting together this publication's summer movie preview, I barely considered "The Conjuring" worthy of mention. That was clearly a mistake. I'd be shocked if we see a better horror film in 2013.
Peter Hartlaub is The San Francisco Chronicle's pop culture critic. E-mail:phartlaub@sfchronicle.com Twitter: @PeterHartlaub
READ MORE

Android x86 Wifi-Wireless Problem&Solution

Posted by Admin On Thursday, July 18, 2013 0 comments
Read it In my new Blog with Updates!
Hi guys! Nowadays most of the people have a trouble with Android x86 wifi-wireless problem.
To handle this I figured out a solution.
Solution:

Open Android  and press Ctrl+Alt+F1 to open terminal then type the following rows:

netcfg        --to see what you have as connection devices in your computer
                    probably you see lo,eth0 and maybe eth1--
then type
netcfg eth0 up   --to open eth0-- after that type
netcfg setprop net.dns1 8.8.8.8
close the terminal by pressing Ctrl+Alt+F7

And have fun with your net connection.
This solution is worked for a friend. Maybe it will work for you too!.
READ MORE

How to install Android x86 on Pc

Posted by Admin On Monday, February 18, 2013 0 comments

To install Android x86 on Pc:first download the iso file which is must be convenient with your pc. You can download it from here. After that you need to write it into a usb disk to form a livecd. Then reboot your computer. Go to boots by pressing F12 then select usb disk. You see the install menu will open. I recommend first try it with “Run Android x86 without installation” . Android will open. If it is not open that means that distribution or version is not convenient with your pc. Change the distribution or version and try it again. If it opened and if it works correctly. That means you can install Android x86 on your pc. Reboot your pc again do the same thing(F12 select usb disk). This time install it on your pc. And have a fun with Android. Thanks to google..
Learn to use your Android Like a Pro. Android Ebook for Android Enthusiasts!
READ MORE

How to add Categories to blogger blog?

Posted by Admin On 0 comments
Guys, today I will tell about categories in blogger. Unfortunately there is no any category widget in blogger. So we have to create it by ourselves. To do this We have two solutions. First Solution: We can use labels with Links widget. Let me Explain with an example let’s say We want Matlab,Linux,Apple as our site’s categories. Then we need to add these names as labels to our posts. Then by clicking the labels in Labels widget we get their URLs. Copy these URLs one by one and add them to Links widget. In that way, we have categories in our blog. Have fun... Second Solution:We can use laves with HTML/J AVASCRIPT widget. This time we will modify or create our Links widget by ourselves via writing html codes into HTML/JAVASCRIPT widget. The advantage of this solution is creating original categories with your requests..(color,font,size etc.) I used the second solution in my blog. You can see categories in the sidebar of my site.
READ MORE

Apple iwatch

Posted by Admin On Sunday, February 17, 2013 0 comments

Designer of iwatch is Pavel Simeonov. The smart watch features a full multi-touch 2.5-inch 16:9 curved IPS display.
Take a look below...


READ MORE

Random Walk using Matlab

Posted by Admin On Thursday, February 14, 2013 0 comments

x=0;
y=0;
xv=x;
yv=y;

while (abs(x)<10 && abs(y)<10)
    d=randi(4);
    switch d
        case 1       %N=1
            y=y+1;
        case 2       %S=2
            y=y-1;
        case 3       %E=3
            x=x+1;
        otherwise
            x=x-1;
    end

    xv(end+1)=x;
    yv(end+1)=y;
end

figure
axis([-10,10,-10,10])
title(['Random walk tooks ',num2str(length(xv)),' steps']);
hold on
comet(xv,yv);
hold off
READ MORE

Slide Show using Matlab

Posted by Admin On 0 comments




figure
n=1;

while n<=12
    membrane(n);
    shading interp;
    title(['Eigenfunction # ', num2str(n)]);
    colormap(spring);
    pause(1.0);
    n=n+1;
end
READ MORE

Initial Arrangements in Matlab

Posted by Admin On 0 comments



str2=input('','s');
if strmatch('do the arrangements\n',str2)

    disp('Yes Sir')
end


cd 'path'
winopen('path');
fprintf('Welcome to Matlab, Mr. 'name'\nCurrent Directory is rearranged, and the mlbe file is opened.\n');

str1=input('','s');
if strmatch('thanks',str1)
    disp('You are Welcome');
    clear;
end

READ MORE

A Traveling Wave by Making an Animation in MATLAB

Posted by Admin On Monday, February 11, 2013 0 comments

clc %clears the command window
clear %clears variables
%Variables:
%Eo wave amplitude (V/m)
%f frequency (Hz)
%omega angular frequency (rad/s)
%t time snapshot
%c speed of light
%z position
%E Electric Field Intensity
%B phase constant (1/m)
%phi phase constant (s)
%phir phase constant (radians)
%lambda wavelength
(m)
%Initial Values of Variables:
f=1000;
phi=0;
c=2.998e8;
lambda=c/f;
t=1;
phir=phi*pi/180;
Eo=1;
B=2*pi/lambda;
omega=2*pi*f;
z=0:4*lambda/100:4*lambda;
E=Eo*cos(omega*t-B*z+phir);
plot(z,E)
axis([0 4*lambda -2*Eo 2*Eo])
grid
xlabel('z(m)')
ylabel('E(V/m)')
pause
t=0:1/(40*f):1/f;
for n=1:40;
E=Eo*cos(omega*t(n)-B*z+phir);
plot(z,E)
axis([0 4*lambda -2*Eo 2*Eo])
grid
title('General Wave Equation');
xlabel('z(m)');
ylabel('E(V/m)');
M(:,1)=getframe;
end


After that I run it from the command window. I give three figures these are in different time to
see properly the wave is travelling.






READ MORE

Modelling a Digital Communication System using Matlab

Posted by Admin On Thursday, February 7, 2013 0 comments

A digital telephone converts an analog signal(our voice) to a digital signal before transmission. While the analog signal takes on real number values, the digital signal takes on only a finite set of integer
values. We can model these implementation effects and save memory by storing the digital as
an integer data type rather than as type double. We did this by using the script in the
following.

%% ====== Sources ======
% Load sampled (discretized time) analog sources
% with double values between -1 and +1.
load phonecalls
% See and hear both sources together.
% Note source clipping at -1 and +1.
plot(source1,'r')
hold on
plot(source2,'b')
ylabel('DOUBLE Values')
title('{\bf Analog Sources}')
legend('Source 1','Source 2')
soundsc([source1,source2],Fs) % Stereo
pause(4)
%% ====== Source coding (quantization) ======
% Digital signals (discretized values) with scaled
% and quantized int8 values between -128 and 127.
sig1 = int8(128*source1);
sig2 = int8(128*source2);
% See and hear both signals together.
% Clipped values at -1 and +1 in the sources
% saturate in the signals at -128 and 127.
figure
plot(sig1,'r.')
hold on
plot(sig2,'b.')
ylabel('INT8 Values')
title('{\bf Digital Signals}')
legend('Signal 1','Signal 2')
soundsc([double(sig1),double(sig2)],Fs) % Stereo
------
As you see from the script I plotted the analog sources and the digital signals seperately. The
plot are shown in Figures. Any other necessary explanations is in the comments in the
script.
I want to speak about some functions and commands these are we used in the script above.
load: load workspace variables from disk.
soundsc: Scale data and play as sound.
pause: Halt execution temporarily.
int8: Stored integer value of fi object as built-in int8

                                                     Analog Sources which is like our voice



                                            Digital Signals represent data in Analog Signals




READ MORE

Yapılar(Structures)

Posted by Admin On Monday, August 27, 2012 0 comments
Yapılar hücre dizileri gibi birbiriyle benzerliği olmayan bilgileri bir araya getirmek için kullanılır. Bilgiler tek bir değişkende toplanır yani yapıda.(structure) Şöyle tanımlanır:

S.fieldname=value;   S:yapının adıdır, fieldname:alt daldaki etikettir, value: alt daldaki bu etiketin değeridir.

Eğer field name i bir değişkende taşımak ve bunu bir structure da kullanmak istiyorsak şöyle yapmamız gerekir:

a='fieldname';
S.(a)=value;

Ayrıca, structure bir fonksiyon için input olarak kullanılabilir.



READ MORE

Yapı Dizilerinde İndeksleme(Indexing into Structure Arrays)

Posted by Admin On 0 comments
İndeksleme normal parantezlerle veya direk field name ile yapılabilir. Örnekler:
S(2)
S.a
S(3).a
S([1,5])
S(1:4).a
y={S(1:4).a}

READ MORE

Yapı Dizileri(Structure Arrays)

Posted by Admin On Sunday, August 26, 2012 0 comments
Yapı dizileri herhangi bir boyutta olabilirler. Elemanlara parantezle erişilebilir. Örneğin:

S(1).a=4;
S(2).a=5;
S(1).b=46;
S(2).c=ones(3);
S(3).a=magic(2);
S(4).b='world';

S


S =

1x4 struct array with fields:
    a
    b
    c

READ MORE

Hücre Dizileri(Cell Arrays)

Posted by Admin On Friday, August 24, 2012 0 comments
Hücre dizileri herhangi bir tip veya boyuttaki dizileri birleştirmek için kullanılabilir. Teknik olarak bir hücre dizisindeki hücreleri birer işaretçi(pointers) gibi düşünebiliriz.
Hücre dizileri için hafızada ön ayırma yapabiliriz. Şöyle ki:
x=cell(m,n);
komutu mXn boyutunda boş bir hücre dizisi oluşturur.
Hücre dizilerini birleştirmek için süslü parantez { } ya da köşeli parantez [ ] kullanabiliriz.
Ayrıca süslü parantezler { } hücrenin içeriğine erişimimizi sağlarken normal parantezler ( ) hücrenin kendisine ulaşmamızı sağlar.

READ MORE

Tam Sayı Dizileri(Integer Arrays)

Posted by Admin On 0 comments
Matlabta dört tane işaretli ve dört tane işaretsiz olmak üzere toplamda sekiz tane tam sayı veri çeşidi vardır. Bunlar:
  • int8, int16, int32, int64
  • uint8, uint16, uint32, uint64
Örneğin:
               B=zeros(m,n,'int8');
B nin elemanları hafızada int8 tipine göre kaydedilecektir.

READ MORE

Matlab Veri Çeşitleri(Matlab Data Types)

Posted by Admin On 0 comments
Matlab'ta 15 tane temel veri çeşidi vardır. Bunların başlıcaları:

  • logical
  • char
  • numeric(single,double)
  • cell
  • structure
  • function handle
  • user class
READ MORE

Hafıza Ön Ayırması(Preallocation of Memory)

Posted by Admin On 0 comments

Bazen yazdığımız scriptlerde matris ya da dizi oluştururken baştan bunların boyutları tam olarak belli olmayabilir. Bu Matlab'in işi daha yavaş yapmasına neden olur. Ancak daha işlemin başında kodumuza şöyle bir satır eklersek:
A=zeros(m,n);
bu Matlab'in işin başında A matrisi için hafızada yer ayırtmasına ve geri kalan işlemleri ve değişiklikleri daha hızlı yapmasına yardımcı olur. Yani kodumuzun performansını bilinçli olarak artırmış oluruz.
READ MORE

Kodun Performansı(Code Performance)

Posted by Admin On 0 comments

Matlab'ta belirlenmiş altı tane görev vardır. Bunların doc bench yazarak görebiliriz. bench(n) komutu bize bu görevlerin farklı bilgisayar ve işletim sistemlerinde ne kadar zamanda yapılabileceğinin karşılaştırmalı
grafiklerini verir.
Kodumuzun ne kadar zamanda çalıştırıldığını bulmak için tic ve toc komutlarını kullanırız. Şöyle ki:
tic; code_name; toc;
komutu kodumuzu çalıştırır ve geçen zamanı command window da gösterir.
Matlab Profiler bize bu konuda daha ayrıntılı bilgi verir. Desktop sekmesinden Profiler seçilerek profiler ı açabiliriz ya da profile viewer komutu ile açabiliriz.

READ MORE

Derlemeye Son Verme(Ending Debugging)

Posted by Admin On 0 comments
Derleme yapılırken derlemeye Debug sekmesinden Exit Debug Menu seçilerek son verilebilir. Hatalar bulunup düzeltildikten sonra clear breakpoints in all files simgesine tıklanarak kesme noktaları kod dosyalarından kaldırılabilir.

READ MORE

Değerleri Test Etme(Examining Values)

Posted by Admin On 0 comments
Kodumuzu derlerken aynı zamanda değişkenlerin değerlerini de test edebiliriz beklediğimiz gibi mi yada değil mi diye. Bu üç yolla yapılabilir. Bunlar:

  1. Atama olan her satırın sonundaki noktalı virgülleri kaldırmaktır. Çünkü bu şekilde atamaların sonucundaki bütün değerler command window da yazılacaktır.
  2. Debug modda komutları command window a girebiliriz değerleri test etmek için.
  3. Debug yapılırken editörde mouse u değerini ya da değerlerini görmek istediğimiz değişkenlerin üstüne sırayla götürerek görebiliriz.
READ MORE

Kesme Noktalarını Kullanma(Using Breakpoints)

Posted by Admin On 0 comments
Eğer hata mesajları bir hatanın yerini belirlememize yetmiyorsa editöre kesme noktaları(breakpoints) yerleştirerek Matlab Debugger ı aktif hale getirebiliriz. Bu şekilde kodumuzu çalıştırırsak Debugger her kesme noktasında derlemeyi kesecek ve bizim devam et dememizi bekleyecektir. Bu şekilde hatanın hangi satırda ya da blokta olduğunu kesin bir şekilde bulabiliriz. Üç tane temel kesme noktası tipi vardır:

  • A Standard breakpoint,       bu belirlenmiş bir satırda durur.
  • A Conditional breakpoint,    bu belirli bir satırda belirlenmiş koşullar gerçekleştiğinde durur.
  • An Error breakpoint,            bu ise kod belirlenmiş bir uyarıyı ya da hatayı yada NaN ya da infinite value durumlarında durur.
Ayrıca editörde Stack field vardır. Buradan aktif workspace i değiştirebiliriz kodumuzu derlerken(debug ederken).
READ MORE

Derleme-Ayıklama(Debugging)

Posted by Admin On 0 comments
Editörde yazdığımız bir scripti command line dan ya da editörden çalıştırmayı denediğimiz zaman matlab önce kodu derlemeye başlar. Yani yazım hatalarını aramaya belirmeye başlar ve bize hataları öncelik sırasına göre sıralar.Script çalıştığı halde işini yapmıyorsa ya da sonuç beklediğimiz gibi değilse run-time hatalar vardır. Bu tür hatalar algoritmik hatalardır.
READ MORE

Editörde Kod Analizi

Posted by Admin On 0 comments
Matlab editörü kod analizi yapan bir araca sahiptir. Biz kodlarımızı yazarken yazım hataları için kontrolü yapar bu araç. Hatalı kısımları veya uyarı ya da tavsiye vermek istediği kısımların altını çizer. Mouse ile altı çizili kısmın üstüne gidersek bize hatayı,uyarıyı ya da tavsiyesini gösterir. Ek olarak, kodda bazı belirli problemler turuncu ya da kırmızı renkte altı çizili çizgilerle görünür. Renkler ve anlamları şöyledir:

Yeşil         Kodda yazım hatası yok demektir.
Turuncu   Beklenmeyen sonuçlar getirebilecek bir potansiyel var ya da performans açısından yetersiz bir ifade.
Kırmızı     Yazım hatası var anlamındadır.


READ MORE

The Matlab Path

Posted by Admin On Thursday, August 23, 2012 0 comments
Matlab path ayarlarını pathtool komutunu command window a yazıp açılan Set Path penceresinden ayarlayabiliriz. Ayrıca  Set Path penceresini file sekmesinden de açabiliriz. path komutu bize kayıtlı bütün path leri verir. which komutu dosyanın ya da fonksiyonun yerini path ismi ile birlikte verir. (which file_name or function_name)
Eğer which komutu all opsiyonu ile birlikte kullanılırsa şöyle ki;
which function_name or file_name -all
Aynı isimdeki bütün dosyaların yerlerini pathleriyle birlikte öncelik sırasına göre verir.
*Mini Bilgi:matlabroot komutu matlab bilgisayarınızda hangi klasöre kurulmuşsa o klasörün path ini verir.
                                                                                                                                    
                                                                                                                                                  
READ MORE

Alt Fonksiyonlar(Subfunctions)

Posted by Admin On 0 comments

Bir fonksiyon dosyası birden fazla fonksiyona ait declaration ve tanımlamaları içerebilir. Ancak bunlardan sadece en üstteki yani primary fonksiyon workspace ten çağrılabilir. Diğerleri sadece fonksiyon dosyasının içinde çağrılabilir.

READ MORE

Fonksiyonların Çalışma Alanları

Posted by Admin On 0 comments
Bir Fonksiyon çağrıldığı zaman ona ait bütün değişkenler ana workspace ten ayrı olarak başka bir workspace te tanımlanır kaydedilir. Fonksiyonun çalışması bittiği zaman bu özel-ayrı workspaceteki değişkenler silinir.
READ MORE



F=Vandermonde matrix, c=katsayılar, M=data, fitM=fitlenmiş data(yeni modelimiz), resid=hata, mse=mean square error ,N=datanın eleman sayısı olsun.
Önce Vandermonde matrisi istenildiği gibi üretilir boyutu fitlenicek datanın boyutuna uygun olarak. Daha sonra F*c=M denklemi backslash yöntemi kullanılarak çözülür(c=F\M). fitM=F*c den bulunur. Diğer değerler de aşağıda belirtildiği gibi bulunur:
resid=fitM-M;
mse=resid'*resid/N;
READ MORE