Concept explainers
To create:
A variable
Answer to Problem 1P
Solution:
The created row vector variable
Explanation of Solution
The given row vector contains following elements:
Simplify the given row vector.
And,
Hence, the created row vector variable
Write the MATLAB script that create a variable
MATLAB Code:
a=[9 1 3^2 7/4 0 2.25*8.5 0.8 sin(pi/8)]
% Calculate the value of the equation
Save the MATLAB script with name, chapter2_56830_2_1P.m in the current folder. Execute the script by typing the script name at the command window to get the answer for a row vector with the following elements:
Result:
Conclusion:
Therefore, the created row vector variable
Want to see more full solutions like this?
Chapter 2 Solutions
EBK MATLAB: AN INTRODUCTION WITH APPLIC
- Introductory Circuit Analysis (13th Edition)Electrical EngineeringISBN:9780133923605Author:Robert L. BoylestadPublisher:PEARSONDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage LearningProgrammable Logic ControllersElectrical EngineeringISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
- Fundamentals of Electric CircuitsElectrical EngineeringISBN:9780078028229Author:Charles K Alexander, Matthew SadikuPublisher:McGraw-Hill EducationElectric Circuits. (11th Edition)Electrical EngineeringISBN:9780134746968Author:James W. Nilsson, Susan RiedelPublisher:PEARSONEngineering ElectromagneticsElectrical EngineeringISBN:9780078028151Author:Hayt, William H. (william Hart), Jr, BUCK, John A.Publisher:Mcgraw-hill Education,