Community Profile # CXD

### TJU

Last seen: Today Active since 2022

sqrt6661661161

Spoken Languages:
English
Professional Interests:
Mathematics and Optimization

#### Statistics

• • • • • • • • • • • • #### Content Feed

View by

Solved

Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

circa 5 ore ago

Solved

Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

circa 5 ore ago

Solved

Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

circa 5 ore ago

Solved

Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

circa 6 ore ago

Solved

raise 1/3
Raise a number to 1/3 power.

circa 6 ore ago

Solved

Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

circa 6 ore ago

Solved

Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

circa 6 ore ago

Solved

Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

circa 6 ore ago

Solved

Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); ...

circa 6 ore ago

Solved

Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

circa 6 ore ago

Solved

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

circa 6 ore ago

Solved

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

circa 6 ore ago

Solved

wipe out!
make all the elements in given x zero.

circa 6 ore ago

Solved

Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

circa 6 ore ago

Solved

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

circa 6 ore ago

Solved

Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

circa 6 ore ago

Solved

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

circa 6 ore ago

Solved

Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

circa 6 ore ago

Solved

There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

circa 12 ore ago

Solved

Volume of Spherical Shell
In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...

circa 12 ore ago

Solved

Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

circa 12 ore ago

Solved

Compute the perimeter of an ellipse
While the area of an ellipse is straightforward to compute, the perimeter (or circumference) is more complicated. The perimeter ...

circa 12 ore ago

Solved

Count estrangements
Recently I made a puzzle for my wife that included a cryptogram, which involves an arrangement of the letters A through Z. I use...

circa 12 ore ago

Solved

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

7 giorni ago

Solved

Conversion from hours to mili sec
Convert given input in hours to mili seconds

7 giorni ago

Solved

Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

7 giorni ago

Solved

Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

7 giorni ago

Solved

Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

7 giorni ago

Solved

Alternate elements!
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

7 giorni ago

Solved

Double the next!
Given two numbers, m and n, find a matrix m x n where each element value is twice the value of the previous element. Starting fr...

7 giorni ago