Create a vector
Create a vector from 0 to n by intervals of 2.
6年弱 前
解決済み
Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts
example:
a = 1, b = 2
output = 1 1.25 ...
6年弱 前
解決済み
02 - Vector Variables 3
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2c.png>>
(all the numbers from 5 to -5 in increments of ...
6年弱 前
解決済み
02 - Vector Variables 2
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2b.png>>
6年弱 前
解決済み
02 - Vector Variables 1
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
6年弱 前
解決済み
Count up then down
Create a function that produces counting up from 0 up to n then down to 0
n=2 --> 0 1 2 1 0
n=3 --> ...
Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html
x is kelvi...
6年弱 前
解決済み
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
Feeling lucky?
Guess which number Cody is thinking (1 to 10)?
(This is a game of luck more than skill. Good luck!)
6年弱 前
解決済み
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...
6年弱 前
解決済み
Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F.
Examples:
Input F = 90
Output C is 32.22
I...
6年弱 前
解決済み
Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody.
Return a value equal to the number of input arguments to the fun...
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年弱 前
解決済み
UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides.
So if A = [1 1]
B = sqrt(2)
6年弱 前
解決済み
square root
Find the square root (y) of an input (x).