解決済み


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

10ヶ月 前

解決済み


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

10ヶ月 前

解決済み


Convert degrees to radians
Given input in degrees, output to radians

10ヶ月 前

解決済み


Conversion from hours to mili sec
Convert given input in hours to mili seconds

10ヶ月 前

解決済み


Find Factrorial without using built-in function
A number is given, you have to find the factorial of the number without using built-in factroial function. You may use loops....

10ヶ月 前

解決済み


UICBioE240 problem 1.15
Calculate: sin(pi/6) cos (pi) tan(pi/2)

10ヶ月 前

解決済み


Find the sum of n squares
What is the sum of the squares of the first n integers?

10ヶ月 前

解決済み


Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

10ヶ月 前

解決済み


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

10ヶ月 前

解決済み


Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

10ヶ月 前

解決済み


Volume of a sphere given its surface area
You just measured its surface area, that is the input.

10ヶ月 前

解決済み


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

10ヶ月 前

解決済み


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

10ヶ月 前

解決済み


does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

10ヶ月 前

解決済み


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

10ヶ月 前

解決済み


How many Integers?
Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

10ヶ月 前

解決済み


Add a vector to a matrix
Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

10ヶ月 前

解決済み


UICBioE240 problem 1.14
Solve 3^x = 17

10ヶ月 前

解決済み


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

10ヶ月 前

解決済み


Matrix with different incremental runs
Given a vector of positive integers a (>=0); How does one create the matrix where the ith column contains the vector 1:a(i) poss...

10ヶ月 前

解決済み


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

10ヶ月 前

解決済み


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

10ヶ月 前

解決済み


Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

10ヶ月 前

解決済み


Convert radians to degrees
Given input in radians, output to degrees

10ヶ月 前

解決済み


Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

10ヶ月 前

解決済み


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; ...

10ヶ月 前

解決済み


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

10ヶ月 前

解決済み


Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

10ヶ月 前

解決済み


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

10ヶ月 前

解決済み


create a circulant matrix
create a circulant matrix

10ヶ月 前

Load more