해결됨

Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

6일 전

해결됨

Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

6일 전

해결됨

Matrix Max Finder
Output the maximum value in a matrix

6일 전

해결됨

Matrix multiplication
Multiply two incoming matrices via matrix multiplication

6일 전

해결됨

Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

6일 전

해결됨

Take two incoming vectors and output the sum of the two vectors

6일 전

해결됨

Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

6일 전

해결됨

Easy Sequences 19: Length of Prime-sided Rectangle with Maximum Area
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

6일 전

해결됨

Multiply binary numbers
Write a function to multiply two binary numbers input as strings. For example, input values of ‘1011’ and ‘101’ should give ’110...

6일 전

해결됨

Combination logic
Create an algorithm in MATLAB that calculate the combination for the given positive integers n and k as inputs. When k > n, the ...

7일 전

해결됨

Easy Sequences 10: Sum of Cumsums of Fibonacci Sequence
The function F(n) is defined as the set of Fibonacci numbers from the first up to the n-th. S(n) is the result of applying to F,...

8일 전

해결됨

Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...

8일 전

해결됨

The perimeter of a circle
Calculate the perimeter of a circle E.g If input r(radius) = 2 , the output( the perimeter of a circle) = 12.5664.

8일 전

해결됨

Easy Sequences 17: Mu Variant Function
The mobius function is an important arithmetic function. It is often represented by the Greek letter mu (μ), and is sometimes ca...

8일 전

해결됨

Free points!
Products of all elements in x. eg. x = [1 2 3 4 5]; y = 120;

9일 전

해결됨

Easy Sequences 16: Volume of Embedded Octahedron
An octahedron (not regular) is formed by joining the centers of the faces of a rectangular parallelepiped (see below figure). ...

9일 전

답변 있음
Random number selection from matrix column and from decimal number
[A(randi(3,1,4)+[0 3 6 9]),rand(1,2)];

11일 전 | 0

답변 있음
How to store array?
x=0:.1:3; for k=1:length(x) A=[5*x(k),0;2*x(k)^2,1] B=[0;2.55] Y(:,k)=A\B; end

11일 전 | 1

답변 있음
How to fill a matrix with formula
y=reshape(y,5,[])';

12일 전 | 1

| 수락됨

해결됨

Easy Sequences 15: Pythagorean Area with maximum Hypotenuse
A pythagorean triangle is defined as a right triangle with all three sides having integer lengths. Examples of pythogorean trian...

12일 전

답변 있음
Create table of means from multiple tables
temp=T1.Properties.VariableNames; T=array2table((T1{:,:}+T2{:,:}+T3{:,:})/3); T.Properties.VariableNames=temp;

13일 전 | 0

해결됨

List the Moran numbers
The quotient of a Moran number and its digit sum is prime. For example, 117 and 481 are Moran numbers because 117/(1+1+7) is 13 ...

13일 전

해결됨

Easy Sequences 14: Consecutive Composites
Generating a given number of consecutive numbers all of which are composites is easy. For example the following is a sequence of...

14일 전

해결됨

Easy Sequences 13: Average Speed of Spaceship
A certain alien spaceship is capable of traveling at extremely high velocities and is able to change speed instantaneously. The ...

15일 전

해결됨

List modest numbers up to n
After determining the nude numbers, or the numbers that openly display some of their divisors as their digits, one would think t...

15일 전

해결됨

Determine whether a number is unprimeable
The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprim...

15일 전

해결됨

Determine whether a number is a fibodiv number
The number 14 is a fibodiv number because you can divide it into 1 and 4, use those numbers as the seeds for a Fibonacci sequenc...

15일 전

해결됨

Easy Sequences 12: 50th Prime
Write a function that outputs the 50th prime after a given number. For example, the 50th prime after 500 is 829. NOTE: If 'n' i...

26일 전

해결됨

Easy Sequences 7: Easy as Composite Pi
The prime Pi function is defined as the number of prime numbers from 1 to a certain given limit. In MATLAB, it is easy to create...

약 1달 전

답변 있음
Printing out zeros as empty character for a tex file
s=sprintf([num2str(i) ' & ' num2str(myData(i,1), format)... ' & ' num2str(myData(i,2), format) ... ' & ' nu...

약 1달 전 | 0

| 수락됨