解決済み


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

9年以上 前

解決済み


merge two matrices together in one matrix
a= [1 2 3 4]; b=[5 6 7 8]; take the first column from matrix (a)and (b)then insert them in matrix (c) respectively, and so on;...

9年以上 前

解決済み


Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

9年以上 前

解決済み


make an eye matrix which element is 1:n
for a given input n, make an n by n matrix which contains elements 1:n for example input =5 output = [1 0 0 0 0;0 2 0 0 0; 0...

9年以上 前

解決済み


multiple 2
function y = your_fcn_name(x) y = 2*x; end

9年以上 前

解決済み


determine if
determine if the elements of a matrix is a nan and return true

9年以上 前

解決済み


basics -making a matrix
make a matrix which contains input x as the last element. the intervals should be +1 ex) input = 5 output= [0 1 2 3 4 5] ex)...

9年以上 前

解決済み


sum all the elements
sum all the elements in the matrix ex) x=[1 2 3 4; 5 6 7 8; 9 10 11 12] y=78

9年以上 前

解決済み


find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating

9年以上 前

解決済み


sum as columns
sum as columns.

9年以上 前

解決済み


'Price of pizza!'
If you want to check pizza's price, try this! price is proportional to its volume, so you have to multiply 0.1($) to pizza's v...

9年以上 前

解決済み


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

9年以上 前

解決済み


find the 'M'
for an input x, return 1 at the location of the letter 'M'

9年以上 前

解決済み


cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.

9年以上 前

解決済み


cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.

9年以上 前

解決済み


Joules!
1J = 101.325 L/atm Write a statement that assigns fractionalMultiplier with 101.325 Write a second statement that assigns Jo...

9年以上 前

解決済み


y=x
y=x

9年以上 前

解決済み


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

9年以上 前

解決済み


What does the "B" in Benoit B Mandelbrot stand for?
Tip https://en.wikipedia.org/wiki/Mandelbrot_set

9年以上 前

解決済み


Create cotangent function out of sine.
Please, don't use cos, tan, cot matlab functions.

9年以上 前

解決済み


Check if a string starts with another string
Input s='He was so tired' q='He' Output ans = true

9年以上 前

解決済み


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

9年以上 前

解決済み


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

9年以上 前

解決済み


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

9年以上 前

解決済み


intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

9年以上 前

解決済み


Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

9年以上 前

解決済み


Return ! if array element starts with a certain letter. Otherwise return ?
Input x=['try' 'once' 'more']; s='t' Output ans='!' Input x=['try' 'once' 'more']; s='O' Output ...

9年以上 前

解決済み


Euclidean distance from a point to a polynomial
A not uncommon problem in the area of computational geometry is to find the closest point to a straight line from a given point,...

9年以上 前

解決済み


Get derivarive of polynomial given as vector array.
Get derivarive of polynomial given as vector array. Example p=[ 1 2 0 5 0 3 ]; result=[ 5 8 0 10 ...

9年以上 前

解決済み


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

9年以上 前

さらに読み込む