Lab 01 Matlab Basics: All Scripts Should Be Stored in Your Firstlastname Folder and Have Clear Names
This document provides instructions for a MATLAB basics lab assignment, asking students to write and execute MATLAB scripts to: 1) Calculate the solutions to a quadratic equation; 2) Calculate the area of basic shapes like rectangles and triangles; 3) Calculate the distance between two points; and 4) Write their own custom equations, with all scripts stored in clearly named folders and files.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
20 views1 page
Lab 01 Matlab Basics: All Scripts Should Be Stored in Your Firstlastname Folder and Have Clear Names
This document provides instructions for a MATLAB basics lab assignment, asking students to write and execute MATLAB scripts to: 1) Calculate the solutions to a quadratic equation; 2) Calculate the area of basic shapes like rectangles and triangles; 3) Calculate the distance between two points; and 4) Write their own custom equations, with all scripts stored in clearly named folders and files.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Cairo University Faculty of Engineering Credit Hour System GENN004
Lab 01 MATLAB Basics
________________________________________________________________________ All scripts should be stored in your FirstLastName folder and have clear names 1. Create and execute the following program (script). Fix all errors if any and show the results to your lab instructor. a = 1; b = 5; c = 6; d = sqrt(b^2 - 4*a*c); r1 = (-b - d)/(2*a) r2 = (-b + d)/(2*a) Add a comment at the beginning of the script stating the purpose of this script and your name. 2. Write and execute a script to calculate the area of a rectangle (triangle, circle, ) area=length * width; 3. Write and execute a script to calculate the distance between two points (x1,y1) and (x2,y2) dist=sqrt((x2-x1)^2+(y2-y1)^2); 4. Write and execute a script to calculate your own equation(s).
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More