Showing posts with label matlab. Show all posts
Showing posts with label matlab. Show all posts

Saturday, December 14, 2013

Transmission Line Analysis Using Matlab

Matlab has a Radio Frequency Toolbox(rf toolbox). Using this toolbox matlab allows us to do some simulation and calculations about transmission lines, active components, RLC components, black box elements etc. In this post we are going to analyze a microstripline using 'rfckt.microstrip' class in the matlab. Let's calculate characteristic...
Read More

Tuesday, August 27, 2013

Modeling a Whale Call with Matlab

I did my computer probation in a company called FIGES last year. In one of these days, my job was modeling a whale call of a blue whale. To do this firstly I did a long research, because I have needed some equations to represent whale call. According to my research: Befitting the largest mammal on earth, the call of an adult blue whale...
Read More

Monday, August 19, 2013

Loops in Matlab ( for in matlab, while matlab, for matlab)

There are two loops in matlab: For loops  While loops For loops are used when the number of loop is certain whereas while loops are used when the condition is specified for a loop to terminate the code in it.  You can see the usage form of for loops and while loops from given examples below: Example 1: For loop for i=1:4, i end Example 2: While loop a=0; while(a<10) a= a+1; a For information in detail...
Read More

Saturday, August 10, 2013

Initial Arrangement Example in Matlab

str2=input('','s');<br /> if strmatch('do the arrangements\n',str2)<br /> <br />     disp('Yes Sir')<br /> end<br /> <br /> <br /> cd 'path'<br /> winopen('path');<br /> fprintf('Welcome to Matlab, Mr. 'name'\nCurrent Directory is rearranged, and the mlbe file is opened.\n');<br /> <br /> str1=input('','s');<br /> if strmatch('thanks',str1)<br...
Read More

A Traveling Wave by Making an Animation in MATLAB

clc %clears the command window<br /> clear %clears variables<br /> %Variables:<br /> %Eo wave amplitude (V/m)<br /> %f frequency (Hz)<br /> %omega angular frequency (rad/s)<br /> %t time snapshot<br /> %c speed of light<br /> %z position<br /> %E Electric...
Read More

Friday, July 19, 2013

Modelling a Digital Communication System using Matlab

I modelled the digital communication system by a simple script. In first, if you haven't installed Matlab in your system yet, you can see my article about installation of matlab on Linux. A digital telephone converts an analog signal(our voice) to a digital signal before transmission. While the analog signal takes on real number...
Read More

Wednesday, March 27, 2013

Generating Square Wave from Fourier Series by Using MATLAB

Fourier series always suprised me.. Harmonics are amazing.. They added together and we get another function.. Let's see it by our own eyes. How harmonics summation give the square wave? To do this and see step by step I wrote a small m-file and used pause command to see changes in function when harmonics are added. Here you are the codes...
Read More

Thursday, March 21, 2013

Send Mail Using Matlab

Send mail using Matlab To send mail via matlab we need to tell to matlab our username,password,server etc. To doing this enter the following codes and modify it, it is just an example. By the way, if you haven't installed matlab into your system, you may wanna read my older post about installation of matlab on linux. % Modify these two...
Read More

Monday, March 18, 2013

Matlab İle Dijital İletişim Sistemi Modeli

Bu yazımda dijital iletişim sistemini modellemek için yazdığım matlab scriptini anlatmak istedim. İlk olarak, sisteminize henüz matlab kurmadıysanız matlab kurulumunu anlattığım yazımı okuyabilirsiniz. Bir dijital telefon ya da analog telefon aldığı analog sinyali yani sesimizi yollamadan önce dijital sinyale çevirir. Analog sinyaller reel...
Read More