A résolu


Bruh
Return 'bruh'.

plus de 2 ans il y a

A résolu


find whether it is prime or not
For a given number find if its prime

plus de 2 ans il y a

A résolu


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

plus de 2 ans il y a

A résolu


Interior angles
Find the sum of interior angles for polygon of x sides.

plus de 2 ans il y a

A résolu


determine amount cookies left
started with 3 cookies and you never ate any how many are left

plus de 2 ans il y a

A résolu


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

plus de 2 ans il y a

A résolu


Your favourite city!
Type your favourite city.

plus de 2 ans il y a

A résolu


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

plus de 2 ans il y a

A résolu


World Cup 2018 Prediction!
Which team will be the winner?

plus de 2 ans il y a

A résolu


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

plus de 2 ans il y a

A résolu


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

plus de 2 ans il y a

A résolu


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

plus de 2 ans il y a

A résolu


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

plus de 2 ans il y a

A résolu


Redefine the Array if the Elements in the Array are Repeating
Check if the Array has any repeating elements, if there are repeating elements then choose "n" as a number of times you want tha...

plus de 2 ans il y a

A résolu


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

plus de 2 ans il y a

A résolu


select the primes of a vector
Find the prime numbers in a vector

plus de 2 ans il y a

A résolu


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

plus de 2 ans il y a

A résolu


ASCii Code
Using Matlab get the ASCii for '?'

plus de 2 ans il y a

A résolu


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

plus de 2 ans il y a

A résolu


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

plus de 2 ans il y a

A résolu


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

plus de 2 ans il y a

A résolu


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

plus de 2 ans il y a

A résolu


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

plus de 2 ans il y a

A résolu


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

plus de 2 ans 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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

plus de 2 ans il y a

A résolu


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input is n=4 th...

plus de 2 ans il y a

A résolu


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

plus de 2 ans il y a

A résolu


Determine if a row vector has NaN
Determine if a row vector x has NaN

plus de 2 ans il y a

Charger plus