A résolu


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

environ un mois il y a

A résolu


divide by 5

environ un mois il y a

A résolu


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

environ un mois il y a

A résolu


ascii value
let input='a' output=97

environ un mois il y a

A résolu


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

environ un mois il y a

A résolu


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

environ un mois il y a

A résolu


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

environ un mois il y a

A résolu


Find remainder when x is divided by 3
Find remainder when x is divided by 3

environ un mois il y a

A résolu


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

environ un mois il y a

A résolu


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

environ un mois il y a

A résolu


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.

environ un mois il y a

A résolu


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

environ un mois il y a

A résolu


Calculate Simple Intrest for given data
P,N,R stands for Principle amount, No. of years and rate of intrest resp. Calculate intrest I

environ un mois il y a

A résolu


Step up
For given input array, output a array with all elements step up by two

environ un mois il y a

A résolu


Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

environ un mois il y a

A résolu


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

environ un mois il y a

A résolu


Halder function
Find the halder function value of a number

environ un mois il y a

A résolu


multiply an array by its position number
You have given an array. Multiply an array by its position number

environ un mois il y a

A résolu


Saving MATLAB session to a file
How to save MATLAB session to a file?

environ un mois il y a

A résolu


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

environ un mois il y a

A résolu


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

environ un mois il y a

A résolu


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

environ un mois il y a

A résolu


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'

environ un mois il y a

A résolu


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

environ un mois il y a

A résolu


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

environ un mois il y a

A résolu


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

environ un mois il y a

A résolu


Approximate functions 1 (★★★)
Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

environ un mois il y a

A résolu


Swap the first and last columns (★★)
(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

environ un mois il y a

A résolu


Generate n equally spaced "intervals" between -x and x (★)
Given n and x, return a list of numbers (in ascending order) that divides the interval [-x x] into n equal-length intervals. ...

environ un mois il y a

A résolu


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

environ un mois il y a

Charger plus