解決済み


calculate square
r=2 a=3

13年弱 前

解決済み


Number of elements in matrix
Just return number of elements in the matrix

13年弱 前

解決済み


Number of rows in matrix
Return the number of rows in matrix

13年弱 前

解決済み


Number of columns in matrix
Return the number of columns in matrix

13年弱 前

解決済み


m-->cm
m-->cm

13年弱 前

解決済み


how much is log 1000
how much is log 1000

13年弱 前

解決済み


factor to number
e.g. input number x=10 then it should produce y=25 or x=100 then y should be 2255. write a function or code to generate the same...

13年弱 前

解決済み


area of triangle
h=5 and x

13年弱 前

解決済み


Calcucate area of square
calcutae area for example 1*1=2 ...

13年弱 前

解決済み


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

13年弱 前

解決済み


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

13年弱 前

解決済み


retwgre
bgreyerb

13年弱 前

解決済み


gsdgtre
gfdbr

13年弱 前

解決済み


Return area of square
Side of square=input=a Area=output=b

13年弱 前

解決済み


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

13年弱 前

解決済み


Find Rotated Substring
Given a string s1, find if a rotated version of s1 is present in a second string s2. For example, rotated version of some str...

13年弱 前

解決済み


Converting Decimal to Binary
Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given...

13年弱 前

解決済み


Get the elements of diagonal and antidiagonal for any m-by-n matrix
In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

13年弱 前

解決済み


Create a Cell array of month-end date strings within a provided date range
This is a variation of <http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get...

13年弱 前

解決済み


Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

13年弱 前

解決済み


Persistent Usage
This Challenge is to implement the Matlab Persistent variable capability. Given a sequence of Calls to a function return the ...

13年弱 前

解決済み


Encoding Google Maps Polylines
This problem is based on the Google Polyline Encoder algorithm. This is how Google Maps encodes a line for display on a map. You...

13年弱 前

解決済み


Cell Source Index
Suppose that C is a cell array whose elements consist of row vectors of elements of the same type. For example, C could be a ce...

13年弱 前

解決済み


Global usage
This Challenge is to utilize Global variables. Global variables are risky as the subroutine may inadvertently and unwantingly...

13年弱 前

解決済み


The rabbit problem
Someone discovered that rabbits reproduce at the rate of fibonnaci so you just input the number and it will print the fibonnaci ...

13年弱 前

解決済み


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

13年弱 前

解決済み


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

13年弱 前

解決済み


Simple problem creating a function from an abstract specification.
MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

13年弱 前

解決済み


False position (linear interpolation) method of finding a root.
Test the false position algorithm described in Chapter 5 of Steven C. Chapra's textbook, *Applied Numerical Methods with MATLAB ...

約13年 前

解決済み


Forward Substitution
Solve a lower triangular linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/...

約13年 前

さらに読み込む