photo

Thomas


Last seen: circa un mese fa Attivo dal 2024

Followers: 0   Following: 0

Statistiche

  • Introduction to MATLAB Master
  • CUP Challenge Master
  • Community Group Solver
  • Solver

Visualizza badge

Feeds

Visto da

Risolto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

circa un mese fa

Risolto


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

circa un mese fa

Risolto


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

circa un mese fa

Risolto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

circa un mese fa

Risolto


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

circa un mese fa

Risolto


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

circa un mese fa

Risolto


Converts numbers into characters
Converts numbers into characters

circa un mese fa

Risolto


Find the max element of the array
Find the max element of the array

circa un mese fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

circa un mese fa

Risolto


to the 2 all elements
to the 2 all elements

circa un mese fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

circa un mese fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

circa un mese fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

circa un mese fa

Risolto


Double all elements in the array
Duplicate all elements in the array

circa un mese fa

Risolto


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

circa un mese fa

Risolto


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

circa un mese fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

circa un mese fa

Risolto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

circa un mese fa

Risolto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

circa un mese fa

Risolto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

circa un mese fa

Risolto


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

circa un mese fa

Risolto


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

circa un mese fa

Risolto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

circa un mese fa

Risolto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

circa un mese fa

Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

circa un mese fa

Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

circa un mese fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

circa un mese fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

circa un mese fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

circa un mese fa

Risolto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

circa un mese fa

Carica altro