EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
bartleby

Videos

Question
Book Icon
Chapter 7, Problem 15P
To determine

(a)

Auser-defined MATLAB function that calculates the area of a triangle from the given vertices’ coordinates by using [Area] = TriArea(A,B,C) as function name and arguments; thearea of triangle with the following vertices A =( 1, 2), B = (10, 3) and C = (6, 11). (Write the code of TriArea such that it has two subfunctions—one that determines the vectors AB and AC and another that executes the cross product. (If available, use the user-defined functions from Problem 14 .))

To determine

(b)

Auser-defined MATLAB function that calculates the area of a triangle from the given vertices’coordinates by using [Area] = TriArea(A,B,C) as function name and arguments; thearea of triangle with the following vertices A =(1.5,4.2,3), B = (5.1, 6.3,2) and C = (12.1, 0,0.5). (Write the code of TriArea such that it has two subfunctions—one that determines the vectors AB and AC and another that executes the cross product. (If available, use the user-defined functions from Problem 14 .))

Blurred answer
Knowledge Booster
Background pattern image
Electrical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Text book image
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Text book image
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Text book image
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Text book image
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY