A résolu


Find 0 in array
Given array find where there 0 is.

presque 4 ans il y a

A résolu


Factorial

presque 4 ans il y a

A résolu


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

presque 4 ans il y a

A résolu


Find the number of primes leq than input
Given an integer n, determine the number of primes less than or equal to n.

presque 4 ans il y a

A résolu


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

presque 4 ans il y a

A résolu


determine the sum of decimal part for given matrix
determine the sum of fraction part for the given matrix

presque 4 ans il y a

A résolu


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.

presque 4 ans il y a

A résolu


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

presque 4 ans il y a

A résolu


Normalizing a vector

presque 4 ans il y a

A résolu


number play

presque 4 ans il y a

A résolu


Solve the equation. Find X.

presque 4 ans il y a

A résolu


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

presque 4 ans il y a

A résolu


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

presque 4 ans il y a

A résolu


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.

presque 4 ans il y a

A résolu


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

presque 4 ans il y a

A résolu


Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

presque 4 ans il y a

A résolu


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

presque 4 ans il y a

A résolu


Generate a list of composite numbers

presque 4 ans il y a

A résolu


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

presque 4 ans il y a

A résolu


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

presque 4 ans il y a

A résolu


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

presque 4 ans il y a

A résolu


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

presque 4 ans il y a

A résolu


persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

presque 4 ans il y a

A résolu


Error handling
If the input is a negative number, generate an error. Otherwise, return the number.

presque 4 ans il y a

A résolu


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

presque 4 ans il y a

A résolu


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

presque 4 ans il y a

A résolu


Draw a '1' in a zero matrix!

presque 4 ans il y a

A résolu


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

presque 4 ans il y a

Charger plus