Risolto


Find sum of alternate numbers in a vector
Find sum of alternate numbers in a vector starting from index 1

oltre 3 anni fa

Risolto


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

oltre 3 anni fa

Risolto


Even Sum
Calculate the sum of all even numbers between 1 and a given positive integer n. Write a function that takes n as input and retur...

oltre 3 anni fa

Risolto


return 4
Return 4

oltre 3 anni fa

Risolto


Multiply by 5
Given an input x (scalar), multiply it by 5.

oltre 3 anni fa

Risolto


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

oltre 3 anni fa

Risolto


Find the volume of a cube
Given a cube with edge length x, calculated the volume of the cube.

oltre 3 anni fa

Risolto


Find Even Numbers in Vector
Given a vector x, return the even entries of the vector in the order they appear in x.

oltre 3 anni fa

Risolto


Find the area of a square

oltre 3 anni fa

Risolto


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

oltre 3 anni fa

Risolto


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

oltre 3 anni fa

Risolto


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

oltre 3 anni fa

Risolto


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

oltre 3 anni fa

Risolto


Find the altitudes of a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coord...

oltre 3 anni fa

Risolto


2行2列の行列の行列式を求めてみよう
ある2行2列の行列の入力に対して、行列式を出力してください。 例えば、入力が(1,2; 3,4)のとき、出力は1*4-3*2で-2となります。

oltre 3 anni fa

Risolto


Calculate the sum of first x natural numbers
Calculate the sum of first x natural numbers for example if n=10 output =1+2+..+10=55

oltre 3 anni fa

Risolto


Google Drive: MATLAB mat file download
Matlab 'mat' files are notoriously hard to email and download as they are binary files. To make a 'mat' file downloadable from ...

oltre 3 anni fa

Risolto


Google Drive file download
This Challenge is to download a file from GoogleDrive given its "copylink" provided URL and a file name. GoogleDrive links fail...

oltre 3 anni fa

Risolto


Optimal saving in Solow's classical growth model
Let us consider a simplified version of Solow's classical growth model. Let , , , and denote production, the capital stock, l...

oltre 3 anni fa

Risolto


Easy Sequences 111: Repnums as Hypotenuse of Pythagorean Triangles
The number belongs to a class of numbers called Repunit Numbers, in which all digits are . For this problem, we'll define a s...

oltre 3 anni fa

Risolto


Finding valleys
You have a vector of altitudes (units are arbitrary) and need to find the depths of all the valleys. You also need to determine ...

oltre 3 anni fa

Risolto


ICFP 2022 - RoboPaint Swaps
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

oltre 3 anni fa

Risolto


Compute rational expectations in a static, linear NKM model
Consider a static, linear approximation of the baseline New Keynesian macroeconomic model. This can be described by an IS equati...

oltre 3 anni fa

Risolto


Recurssive serie
let the numerical serie U(n) such as U(n+1)= 0.2U(n) + 0.3U(n-1) ; U(0) = a ; U(1) = b the goal is to plot the elements of this...

oltre 3 anni fa

Risolto


ICFP 2022 - Optimal RGB for a region
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

oltre 3 anni fa

Risolto


ICFP 2022 - RoboPaint Image Scoring
The ICFP2023 Challenge is Jul 7-10, registraion opens late June. Updates at TwitICFP2023. These contests are insanely complicate...

oltre 3 anni fa

Risolto


Calculate the volume of the intersection of two balls
Consider two balls (solid spheres) in , with radius and respectively. Suppose that the distance between the centers of the two...

oltre 3 anni fa

Risolto


Calculate the square root
Given an input integer x, calculate the square root without using the sqrt function.

oltre 3 anni fa

Risolto


Mantissa of IEEE Single
Output the mantissa bits as a uint32 of the IEEE representation of the single-typed 32-bit float input. Store these bits in the ...

oltre 3 anni fa

Risolto


Sign of IEEE Single
Output the sign bit of the IEEE representation of the single-typed 32-bit float input as the uint8 "1" or the uint8 "0".

oltre 3 anni fa

Carica altro