Find the Best Hotels
Given three input variables:
hotels - a list of hotel names
ratings - their ratings in a city
cutoff - the rating at which yo...
2ヶ月 前
解決済み
Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas:
1 kilogram = 2.2 pounds
1 inch = 2...
2ヶ月 前
解決済み
Solve a System of Linear Equations
Example:
If a system of linear equations in x₁ and x₂ is:
2x₁ + x₂ = 2
x₁ - 4 x₂ = 3
Then the coefficient matrix (A) is:
2 ...
2ヶ月 前
解決済み
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following:
* ...
2ヶ月 前
解決済み
Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....
2ヶ月 前
解決済み
Convert a Cell Array into an Array
Given a square cell array:
x = {'01', '56'; '234', '789'};
return a single character array:
y = '0123456789'
2ヶ月 前
解決済み
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
2ヶ月 前
解決済み
Pi Estimate 1
Estimate Pi as described in the following link:
<http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>
Voltage Divider Calculation
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in serie...
2ヶ月 前
解決済み
LED Current Calculation
In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law:
Where:
I is the current ...
2ヶ月 前
解決済み
Inductor Energy Storage Calculation
The energy (EEE) stored in an inductor is given by the formula:
Where:
E is the energy in joules (J)
L is the inductance in...
Energy Stored in a Capacitor
The energy (E) stored in a capacitor is given by the formula:
where:
C is the capacitance (in farads)
V is the voltage (in ...
Simple Electrical Power Calculation
Calculate the electrical power using the formula:
P=V×I
where:
V is the voltage (in volts)
I is the current (in amperes)
2ヶ月 前
解決済み
Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I
where:
V is the voltage (in volts)
I is the current (in ampere...