A blog to help electrical engineers and students to learn electrical engineering topics. Basic Electrical Engineering, Power Systems, Electrical Machines, tec.. Now special course on MATLAB for Beginners.

Class

Class

Wednesday, September 21, 2016

MATLAB Scripts - Examples with Electrical Engineering Applications



› This lecture we will practice some Basic MATLAB Scripts. ›We will start with simple scripts and will discuss some electrical engineering applications. Program to calculate Electricity bill. w = input('Enter power of your device (in watts): '); h = input('Enter time (in hours): '); r = input('Enter electricity rate (in dollars per KWH): '); ec = w * h/1000 * r; disp(’Your Electricity bill is’) Disp(ec) Power transfer vs Load...

Saturday, September 10, 2016

Introduction to MATLAB Scripts



MATLAB Script or programs are sequences of MATLAB commands saved in plain text files. When you type the name of the script file at the MATLAB prompt the commands in the script file are executed as if you had typed them in command window. Code for a script is done in an Editor window and saved as m-file.  In case your code has errors, MATLAB will show an error message in the command window, when you try to run the program . Error message...

Sunday, September 4, 2016

MATLAB Programming Tips 2 - Input and Output Commands



In this lecture we will review some common input and output commands in MATLAB. These commands are discussed in detail in previous lectures. For detailed Lectures on Input and Output commands follow the links below. Basic data Input Commands Basic Display and Output Commands MATLAB programming tips 2 - Input and Output Commands from Shameer Ahmed Koya...