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

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 7, Problem 4P
To determine

(a)

A user-defined MATLAB function that calculates the specific weight of steel whose density is 7860 kg/m3 by using [ sw ] = DenToSw(den) as function name and arguments.

To determine

(b)

A user-defined MATLAB function that calculates the specific weight of titanium whose density is 4730 kg/m3 by using [ sw ] = DenToSw(den) as function name and arguments.

Blurred answer
Students have asked these similar questions
circuit 2
Suppose you have 8 LED's connected to port-B (Bo-B7) of PIC16F877A and one switch connected to port-D (Do) as shown in figure below. Write a program code that performs a nibble (4-bits) toggling: if the switch is released then LED's (Bo to B3) are OFF and LED's (B4 to B7) are ON, while if the switch is pressed then LED's (Bo to B3) are ON and LED's (B4 to B7) are OFF. Use 300ms delay for each case with 4MHz frequency. 13 14 22 NATHON 20 U1 OSC1/CLKIN U2 33 REOINT 20 34 OSC2/CLKOUT 19 RB1 35 3 18 RB2 RADIANO debt0RB3PGM 30 4 17 37 5 10 RA1/AN1 RB4 38 RA2/ANZ/VREF-/CVREF 15 RB5 39097 RA3/AN3VREF RB6/PGC 7 14 40 RA4/TOCK/C1OUT 13 RB7/PGO RAS/ANA/SS/CZOUT 15 RCO/T1OSO/TICKI 10 11 REQIANS/RD 18 RC1/T10S/CCP2 17 10 RE1/AN/WR REZ/ANTICS MCLR/Vpp/THV RC2/CCP1 LED-BARGRAPH-RED RC3/SCK/SCL RC4/SDUSDA RC5/SDO Eng of ROSTX/CX RC7/RX/DT RDO/PSPO RD1/PSP1 RD2PSP2 RO3/PSP3 RD4/PSP4 ROS/PSP5 RD6/PSP6 RD7/PSP7 PIC16F877A +5V R1 100R
Write a PIC16F877A program that flash ON the 8-LED's connected to port-B by using two switches connected to port-D (Do & D₁) as shown in figure below, according to the following scenarios: (Hint: Use 500ms delay for each case with 4MHz frequency) 1. When Do=1 then B₁,B3,B, are ON. 2. When Do 0 then Bo,B2,B4, B5, B6 are ON. 3. When D₁=1 then B4,B,,B6,B7 are ON. 4. When D₁-0 then Bo,B1,B2,B3 are ON. U1 5 33 OSC/CLION OSC2/CLKOUT ROOINT RB1 35 RB2 20 17 RACIANO RESPOM RATANT RAZIANZ/VREF-CVREF RBS RA3/AN3/VREF+ REPOC 39 14 40 RA4/TOCK C1OUT 13 RB7/PGO 12 RASIAN/SCOUT 15 ROOT1050/TICK +5V REGIANERD REVANDVIR REZANTICS RCMT10SUCCP2 17 RC2/CCP1 LED-BARGRAPH-RED RC3SCHISCL 23 --- MCUANTV RC4/SOSDA 24 RCS/SDO RCB/TICK RC7/RXDT 25 ROOPSPO RDMPSP1 RD2PSF2 RO3PSP3 RD4PSP4 RDSPSPS PIC16F877A ROOPSP RO7/PSP7 R2 R1 100R 100R
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.
Similar questions
SEE MORE QUESTIONS
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,
Limits and Continuity; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=9brk313DjV8;License: Standard YouTube License, CC-BY