System Simulation in Matlab/Simulink Exercise 1: Matlab part 1) Plot the function yx=2∙x-x2+sin(2∙x)∙cos(x) function problem1 (x) y=2.*x-x.^2+sin(2.*x).*cos(x) plot(x‚y‚’r’) end 2) Print n! from n=2 to 20 function problem2 for k=2:20 n=factorial(k) end 3) Make a function that calculates RSS for a give vector. function [rss]=problem3(a) rss=sqrt(a*a’); end 4) Make a function that check to see if a number is a prime. function problem4(n) flag=0; for k=[2:1:(n/2)]
Premium
POWER SYSTEM STABILITY STUDIES USING MATLAB A Project Report Submitted in partial fulfillment of the requirements for the degree of Bachelor of Technology in Electrical Engineering By PRANAMITA BASU ( Roll No. – 10502064 ) AISWARYA HARICHANDAN ( Roll No. – 10502019 ) National Institute of Technology Rourkela Rourkela-769008‚ Orissa POWER SYSTEM STABILITY STUDIES USING MATLAB A Project Report Submitted in partial fulfillment of the requirements for the degree of Technology Bachelor
Premium Control theory Trigraph
mm1 simulation in matlab clc;clear; ST_Idle=0; ST_Busy=1; EV_NULL=0; EV_Arrive=1; EV_Depart=2; EV_LEN=3; Q_LIMIT=1000000; % next_event _type=[]; % num_custs _delayed=[]; % num_delays _count=[]; % num_events=[]; % num_in _queue=[]; % server_status=[]; % area_num _in _queue=[]; % area_server _status=[]; % mean_interarrival=[]; % mean_service=[]; % clock=[]; % time_last _event=[]; % total_of _delays=[]; time_arrival=[]; time_next _event=zeros(1‚EV_LEN);
Premium Customer service Customer Average
%Part of Telecommunication simulations course‚ Spring 2006 %Harri Saarnisaari‚ CWC %We simulate uncoded BER of BPSK modulated data as a function of SNR %-in an AWGN channel %-in a Rayleigh fading channel %-in an AWGN channel when direct sequence spreading is used %and compare results to the theoretical ones. %We assume coherent receiver and perfect synchronization. ------------------------------------------------%set used SNR values %SNR (Eb/No) values in decibels SNR=[0:2:14]’; %column vector
Premium Rayleigh fading Fading
MATLAB BASED AUTOMATED CONTROL SIMULATIONS IN BIO-REACTORS ABSTRACT Designing of bioreactors is a very complex process and requires the clear understanding of the biological phenomena occurring during the process and the development of best suitable reactor for bringing out the product in an economically viable‚ large scale form. The conventional techniques currently in uses are very time consuming and some of their steps may even be based on trial and error format. Therefore there
Premium Control theory Chemical engineering Activated sludge
Introduction to Matlab Version 2.3 David F. Griffiths Department of Mathematics The University Dundee DD1 4HN With additional material by Ulf Carlsson Department of Vehicle Engineering KTH‚ Stockholm‚ Sweden Copyright c 1996 by David F. Griffiths. Amended October‚ 1997‚ August 2001‚ September 2005. This introduction may be distributed provided that it is not be altered in any way and that its source is properly and completely specified. Contents 1 MATLAB 2 Starting Up 2.1 Windows Systems . 2.2 Unix
Premium Matrices Linear algebra
MATLAB BEGINNER’S GUIDE 0 About MATLAB MATLAB is an interactive software which has been used recently in various areas of engineering and scientific applications. It is not a computer language in the normal sense but it does most of the work of a computer language. Writing a computer code is not a straightforward job‚ typically boring and time consuming for beginners. One attractive aspect of MATLAB is that it is relatively easy to learn. It is written on an intuitive basis and it does not
Premium Matrices Triangular matrix
components – MATLAB – Revision‚ Numerical Integration‚ Root Finding • Dr Mike Clee • Lectures – Weeks 2-4‚ Labs – Weeks 3-5 • 50% 1 assignment – CAD – Solidworks • Dr Chengyuan Wang • Lectures Weeks 5-6‚ Labs – Weeks 6-12 • 50% – 1 assignments Semester 1‚ 2014-2015 General Information • MATLAB lab slots – There will be demonstrators in each lab to help with MATLAB worksheets – Each student has the opportunity to complete the assignment during the lab sessions – Remember - MATLAB labs will be
Premium User interface MATLAB Variable
Using Matlab to Execute a Genetic Algorithm Optimization of Two Variable Function The function to be optimized is given by: [pic] The maximum value of this two variable function is desired‚ however Matlab’s gatool finds the minimum of fitness functions and so as in the previous example the function must be altered as follows: [pic] Now we must enter this function‚ as before‚ into a Matlab function file. Start Matlab and change the working directory to your Knowledge
Premium Genetic algorithm Fitness landscape MATLAB
College of Engineering ELECTRONICS AND COMMUNICATIONS ENGINEERING NDC Compound‚ *Anonas* St. Sta. Mesa‚ Manila {draw:line} Research Work with Defense Submitted By: Group 3 - Alpha Signal Rho BSECE IV-1 Leader : SANTOS‚ Ralph Rhyan G. Members: BELANO‚ Gracielle D. ESPINOSA‚ Joey Q. HERNANDEZ‚ Jan Roldan B. MATIC‚ Millicent G. RIVO‚ Sarah Ezekiel M. VILLENA‚ Kane Dave R Engr. Gerhard P. Tan Instructor Introduction It is known that our fast-paced
Premium File format Streaming media