Community Profile

photo

jmac


Last seen: 9 días ago

Lennon

927 total contributions since 2020

Combinatorial optimization, computer vision, investment management, algorithmic trading

Contact

jmac's Badges

  • Revival Level 1
  • First Answer
  • Computational Geometry I Master
  • Puzzler
  • Tiles Challenge Master
  • Explorer
  • Number Manipulation I Master
  • Cody5 Easy Master
  • Matrix Manipulation I Master
  • Sequences And Series I Master
  • Scholar
  • Creator
  • Project Euler I
  • Matrix Patterns III Master
  • Matrix Patterns II Master

View all

Contributions in
View by

Solved


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

alrededor de 1 mes ago

Solved


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

alrededor de 1 mes ago

Solved


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

alrededor de 1 mes ago

Solved


Vector of digits (★★)
Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

alrededor de 1 mes ago

Solved


What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

alrededor de 1 mes ago

Solved


Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

alrededor de 2 meses 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 ...

alrededor de 2 meses ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

alrededor de 2 meses ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

alrededor de 2 meses ago

Solved


Divisors of an integer
Given a number N, return a vector V of all integers that divide N. For example, N = 10 Then V=[1 2 5 10]

alrededor de 2 meses ago

Solved


Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

alrededor de 2 meses ago

Solved


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

alrededor de 2 meses ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

alrededor de 2 meses ago

Solved


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

alrededor de 2 meses ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

alrededor de 2 meses ago

Solved


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

alrededor de 2 meses ago

Solved


Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

alrededor de 2 meses ago

Solved


Generate pi using logarithm
Generate pi using logarithm

alrededor de 2 meses ago

Solved


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

alrededor de 2 meses ago

Solved


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

alrededor de 2 meses ago

Solved


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

alrededor de 2 meses ago

Solved


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

alrededor de 2 meses ago

Solved


Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...

alrededor de 2 meses ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

alrededor de 2 meses ago

Solved


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

alrededor de 2 meses ago

Solved


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

alrededor de 2 meses ago

Solved


Square root of number
Square root of given number.

alrededor de 2 meses ago

Solved


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

alrededor de 2 meses ago

Solved


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

alrededor de 2 meses ago

Solved


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

alrededor de 2 meses ago

Load more