Risolto


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

3 mesi fa

Risolto


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

3 mesi fa

Risolto


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

3 mesi fa

Risolto


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

3 mesi fa

Risolto


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

3 mesi fa

Risolto


Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector. Example: ...

3 mesi fa

Risolto


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

3 mesi fa

Risolto


Compare two strings.
Compare two strings, whether they are equal or not.

3 mesi fa

Risolto


Convert binary numbers array into array of decimal numbers.
Convert binary numbers array into array of decimal numbers. Example x=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ;...

3 mesi fa

Risolto


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

3 mesi fa

Risolto


Where the Four Corners Am I?
The "Four Corners" region of the US is where Colorado, Utah, Arizona, and New Mexico all meet - the only place where four states...

3 mesi fa

Risolto


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

3 mesi fa

Risolto


Without the French accent please!
Suppress the French accent. Example 'Déjà présent' -> 'Deja present'

3 mesi fa

Risolto


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

3 mesi fa

Risolto


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

3 mesi fa

Risolto


Mile to Kilometer
x is mile and y is km

3 mesi fa

Risolto


Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

3 mesi fa

Risolto


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

3 mesi fa

Risolto


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

3 mesi fa

Risolto


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

3 mesi fa

Risolto


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

3 mesi fa

Risolto


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

3 mesi fa

Risolto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

3 mesi fa

Risolto


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

3 mesi fa

Risolto


MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.

3 mesi fa

Risolto


Plot
Make a plot of the vector x. NOTICE: YOU CAN NOT USE ans INSTEAD OF y!

3 mesi fa

Risolto


Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT https://codeforces.com/problemset/problem/4/A NOW INSTEAD OF DISP...

3 mesi fa

Risolto


Trapezium
Calculate the area of the Trapezium using it's bases and height.

3 mesi fa

Risolto


Title
Make a plot for x and add title "My Plot". NOTICE: YOU CAN NOT USE ans INSTEAD OF [y ax]!

3 mesi fa

Risolto


Column Vector
The third problem in Linear Algebra group. Create a column vector like this:

3 mesi fa

Carica altro