解決済み


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

約8年 前

解決済み


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

約8年 前

解決済み


Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...

約8年 前

解決済み


Large Sum (inspired by Project Euler 13)
Your function will be provided an arbitrary number of numbers of arbitrary sizes as a cell array of strings. Some numbers will b...

約8年 前

解決済み


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

約8年 前

解決済み


How do you make seven even?
Take away the s.

約8年 前

解決済み


Primes Checker
Given variable inputs Check if they are prime numbers

約8年 前

解決済み


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

約8年 前

解決済み


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

約8年 前

解決済み


Select primes from the matrix.
Select primes from the matrix.

約8年 前

解決済み


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

約8年 前

解決済み


Set x value to each even index of vector y.
Set x value to each even index of vector y.

約8年 前

解決済み


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

約8年 前

解決済み


Find the maxmum value of N*N Matrix
Input x=[1 2 3; 4 5 6; 7 8 9] output: y=9

8年以上 前

解決済み


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

8年以上 前

解決済み


Shuffle
Shuffle a vector by breaking it up to segments of |n| elements, and rearranging them in a reversed order. For example, the ve...

8年以上 前

解決済み


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

8年以上 前

解決済み


Vector push
Append an element |x| to the end of the vector |v| and return both the extended vector and the new number of its elements. |x| c...

8年以上 前

解決済み


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

8年以上 前

解決済み


The maximum sum of squares (testing)
Create a function file with an input maxval to determine the maximum number of terms for the series 1^2 + 2^2 + 3^2 + ... such t...

8年以上 前

解決済み


true or false
if the matrix has a zero, return true. else, return false

8年以上 前

解決済み


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

8年以上 前

解決済み


Calculate roots of polynomial given as vector array.
Calculate roots of polynomial given as vector array. Example x=[1 2 0 5 0 3] result=[-2.7267 ; ...

8年以上 前

解決済み


Opposite task convert string hexadecimal numbers array into array of decimal numbers .
Opposite task convert string hexadecimal numbers array into array of decimal numbers . Example x=[ '208'; '209'; '20A'; ...

8年以上 前

解決済み


Numerate input arguments
For every string input, output the corresponding number. For example: [a, b] = Test('first', 'second') a=1; b=2;

8年以上 前

解決済み


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

8年以上 前

解決済み


Comparison of floating-point numbers (doubles)
<https://au.mathworks.com/help/matlab/matlab_prog/floating-point-numbers.html Floating-point numbers> cannot generally be repres...

8年以上 前

解決済み


World Cup 2018 Prediction!
Which team will be the winner?

8年以上 前

解決済み


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

8年以上 前

解決済み


generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

8年以上 前

さらに読み込む