UICBioE240 2.2
Make a 3x4 matrix that contains all ones.
約7年 前
解決済み
Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it.
(The original psi is passed as a number to the...
約7年 前
解決済み
UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.
約7年 前
解決済み
UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...
約7年 前
解決済み
UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions
A = 2+5i
B = 2+5*i
C = both are okay
Write capital letter a...
約7年 前
解決済み
Box!
Given a box, find the volume of the cube. With each side = a.
Square a Number
Given an input x, return y, which is equal to the square of x.
約7年 前
解決済み
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
約7年 前
解決済み
Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers.
Given a positive in...
約7年 前
解決済み
Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
約7年 前
解決済み
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
約7年 前
解決済み
Energy of a photon
*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛*
Given the frequency F of a photon in giga hertz.
Find energy E of this...
約7年 前
解決済み
Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...
約7年 前
解決済み
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1.
Hint: use increment.
約7年 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 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....
Make roundn function
Make roundn function using round.
x=0.55555
y=function(x,1)
y=1
y=function(x,2)
y=0.6
y=function(x,3)
...
約7年 前
解決済み
Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...
約7年 前
解決済み
MATLAB Basic: rounding IV
Do rounding towards plus infinity.
Example: -8.8, answer -8
+8.1 answer 9
+8.50 answer 9