UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...
Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not.
eg. x = 1884
output = 1
eg. x = 3
output = 0
6年弱 前
解決済み
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer:
e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
6年弱 前
解決済み
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers.
Examples:
[index1 index2] = nearestNumbers([2 5 3...
6年弱 前
解決済み
UICBioE240 problem 1.10
Find the number of cells in a bioreactor after a given time when doubling time is dd and initial number of cells is x.
So if ...
6年弱 前
解決済み
UICBioE240 problem 1.7
Find the other two angles of a right triangle given the two of the sides.
So if A = [1 1]
B = [45 45]
6年弱 前
解決済み
UICBioE240 problem 1.9
Swap the first and last columns of a matrix.
So if A = [12 4 7;
5 1 4];
B = [7 4 12;
4 1 5];
...
6年弱 前
解決済み
UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.
...
6年弱 前
解決済み
UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd.
So if
A = [ 1 2 3;
4 5 6;
7 8 9]
the...
6年弱 前
解決済み
UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector.
So if A = [ 1 2 3;
...