Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: 1. Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in

image text in transcribed

image text in transcribed

Instructions: 1. Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the same script (Hint: careful with variables names) 2. Show your work and make comments in the same script (Use %). Please write your name in the first line of the scrip with % 3. It is OK to work with other students, but what you submit should be your own work - not something copied from someone else. P1: Using loops show the following calculation: 1 n3 P2: When working with computer, microprocessors or digital systems most of the commands are represented in binary numbers, hexadecimal numbers, ASCII or octal. We want to write a code that do the following Inputs are decimal digits from 100 to 300 counting by 5 When the counter find a number smaller than 200 the result will be the same number converted into binary When the counter find an number bigger than 200 the result will be the same number converted into hexadecimal When the counter find 200 display "We are at the 200 mark, from now on the numbers will be display as hexadecimal numbers" a. b. c. d. P3: Simulate Brownian Motion (is the random number of motion particles suspended in liquid or gas resulting from their collision with the atoms) a. Make a 10,000 vector of zeros b. Write a loop to keep track of the position of the particle(n 2:10,000) c. If the random number is less than 0.5 move left, otherwise go right. d. Store each new position in the vector e. Plot a 50 bin histogram (help hist) P4: Power Calculator: Using loops create a power calculator a. b. c. Ask the user to input 2 values (ex: voltage in volts, and current in amps) Calculate 2 equations from the schematic below Display each one of them with a comment (ex: For the # Voltage and # Amps you enter, the Total Power is # Watts and the total resistance is # in Ohms.) Instructions: 1. Solve the following problems in a MATLAB script. You will be allowed to submit only one script, please work all the problems in the same script (Hint: careful with variables names) 2. Show your work and make comments in the same script (Use %). Please write your name in the first line of the scrip with % 3. It is OK to work with other students, but what you submit should be your own work - not something copied from someone else. P1: Using loops show the following calculation: 1 n3 P2: When working with computer, microprocessors or digital systems most of the commands are represented in binary numbers, hexadecimal numbers, ASCII or octal. We want to write a code that do the following Inputs are decimal digits from 100 to 300 counting by 5 When the counter find a number smaller than 200 the result will be the same number converted into binary When the counter find an number bigger than 200 the result will be the same number converted into hexadecimal When the counter find 200 display "We are at the 200 mark, from now on the numbers will be display as hexadecimal numbers" a. b. c. d. P3: Simulate Brownian Motion (is the random number of motion particles suspended in liquid or gas resulting from their collision with the atoms) a. Make a 10,000 vector of zeros b. Write a loop to keep track of the position of the particle(n 2:10,000) c. If the random number is less than 0.5 move left, otherwise go right. d. Store each new position in the vector e. Plot a 50 bin histogram (help hist) P4: Power Calculator: Using loops create a power calculator a. b. c. Ask the user to input 2 values (ex: voltage in volts, and current in amps) Calculate 2 equations from the schematic below Display each one of them with a comment (ex: For the # Voltage and # Amps you enter, the Total Power is # Watts and the total resistance is # in Ohms.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

Demonstrates a real belief and passion for change.

Answered: 1 week ago