Do you like your boss?
Do you like your boss?
Answer can be any string!
For example:
Boss = 'Do you like your boss?';
Output = 'yes'
or
...
3年以上 前
解決済み
Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0".
Exa...
3年以上 前
解決済み
Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.
Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody.
Given 2 input variables, output true if they are equal, false ot...
3年以上 前
解決済み
the number of inputs
Find the number of the inputs of the function.
example
y = theinputnumber(x,k);
function called theinputnumber has 2 in...
3年以上 前
解決済み
Primes Checker
Given variable inputs
Check if they are prime numbers
Create incrementing array
Given a and b generate an output matrix as shown in following examples:
a=2
b=5
output=[2 20 200 2000 20000]
a=4
b...
3年以上 前
解決済み
Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody.
Return a cell array of all MATLAB keywords
3年以上 前
解決済み
Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody.
Return a cell array of strings of all MATLAB keywords.
3年以上 前
解決済み
Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody.
Return the largest positive floating-point number MATLAB can han...
3年以上 前
解決済み
Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody.
Return the largest positive integer MATLAB can handle.
3年以上 前
解決済み
Min of a Matrix
Return the minimum value in the given matrix.
3年以上 前
解決済み
Alternating sum
Given vector x, calculate the alternating sum
y = x(1) - x(2) + x(3) - x(4) + ...
3年以上 前
解決済み
What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section.
<http://www.mathworks.de/matlab...
3年以上 前
解決済み
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix
example:
A = [1 2 3]
output = [1 4 9]
Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
y ...
3年以上 前
解決済み
Add the odd numbers
Add only the odd numbers of x
example:
x = [1 2 3 4 5]
the positive numbers are: 1 3 5, so their sum is 9