Community Profile

# Alan

198 total contributions since 2018

View details...

Contributions in
View by

Solved

Find square of given number
Find Square of any number

8 Tage ago

Solved

anshil's problem
Only anshil should solve ans = ''

3 Monate ago

Solved

Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

5 Monate ago

Solved

In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

5 Monate ago

Solved

In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

5 Monate ago

Solved

Ratio between sum of primer numbers and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

6 Monate ago

Solved

Sum of a geometric series
Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

6 Monate ago

Solved

Get the mean digit
Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example: x ...

6 Monate ago

Solved

Easy problem
This is an easy problem. Just click on submit.

6 Monate ago

Solved

Cody problems in French : Trouvez la logique Pt.2
Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

6 Monate ago

Solved

Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

6 Monate ago

Solved

Say type of roots in quadratic equation
Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...

6 Monate ago

Solved

Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

6 Monate ago

Solved

Nth Order Polynomial Regression
Inputs: -two vectors x and y (row or column) -order of polynomial, p Outputs: -vector of coefficients [b0 b...

6 Monate 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 Monate ago

Solved

Determine if input is odd or even
Determine if input is odd or even, sample problem

7 Monate ago

Solved

Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

7 Monate ago

Solved

Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

7 Monate ago

Solved

Given consecutive numbers, add the numbers *without using the sum command in MATLAB.*

8 Monate ago

Solved

Optimization of cylinder surface area
Optimization of a cylinder surface area. What are the best parameters (radius and height) to get the minimum cylinder surface a...

8 Monate ago

Solved

Cube root of max value in a vector
Find the cube root of the maximum value in a vector

9 Monate ago

Solved

Number Power
Raise a number to itself.

9 Monate ago

Solved

Find The Difference
Vector x is given.calculate the difference between the biggest and the smallest number that we can create from elements of x. f...

9 Monate ago

Solved

Test Problem
Let y = x.

9 Monate ago

Solved

Cannibal eating odd and even numbered men
There are N men in a queue. A cannibal eats either all odd-numbered or all even-numbered men in the queue at a time. In the fi...

9 Monate ago

Solved

Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

9 Monate ago

Solved

Testing Problem Creation
This is where MATLAB based question will be

9 Monate ago

Solved

solid of revolution
Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rota...

9 Monate ago

Solved

Find the Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the...

9 Monate ago

Solved

Under the sea: Snell's law & total internal reflection
<https://en.wikipedia.org/wiki/Snell's_law> When a light travels from one medium to another medium, depending on the refracti...

9 Monate ago