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...
Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes.
---
You may already know how to get the <http://www.ma...
6年弱 前
解決済み
UICBioE240 problem 1.2
Convert a column vector into a row vector.
So if A = [1;
2;
3]
Then B = [ 1 2 3]
6年弱 前
解決済み
UICBioE240 2.2
Make a 3x4 matrix that contains all ones.
6年弱 前
解決済み
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...
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.13
Compute the following -
y = x^5/(x^-1) and
y = (1-(1/x^5))^-1.
Have the final answer of y to equal a 1 by 2 vector.
Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...
6年弱 前
解決済み
Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle
6年弱 前
解決済み
Area of a disk
Find the area of a disk or circle.
x= radius of the disk.