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

Thursday, March 31, 2016

More on Plotting - Part 3



ezplot ezplot   is an easy to use function plotter. The limits of the plot will be automatically set by the MATLAB when you run the command. >> ezplot('sin(t)') You can set the limits of the function; ezplot(‘function’,[lower_limit upper_limit]). The command plots the function between the limits specified. >> ezplot('sin(t)',[0 4*pi]) Ezplot can be used to plot curve between two functions. ezplot(‘function1’,’function2’, [lower_limit...

Saturday, March 19, 2016

Plotting in MATLAB - Part 2



Read Part 1 Here Controlling Axis Properties The limits and scale of a plot will be automatically set by the MATLAB when you run a plot command. There are commands defined to change this default values. The common commands used for axis scaling and appearance are given below. axis([xmin xmax ymin ymax]) command sets scaling for the x- and y-axes on the current plot. This command is useful to display a specific area of a plot.  Example:...

Saturday, March 12, 2016

Graphics in MATLAB - Basics



Introduction Graphical representation of problems is very important in engineering problem solving. Plotting the results usually leads to additional insight into the nature of the problem.  So plotting is an important element to use and become skilled at using with MATLAB. MATLAB has an excellent set of graphic tools.  Plotting a given data set or the results of computation is possible with very few commands.  You may need multiple...

Saturday, March 5, 2016

Managing Strings in MATLAB



Introduction A string is an array of characters. A character string can be created in MATLAB using single quotes ('). The assignment operator is used to assign the string to a variable. For example, >> a = 'Electrical' a =           Electrical MATLAB will consider this as a 1-by-10 character array. A string can have letters, digits, symbols, spaces. To type single quote in string, use two...