A résolu


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

plus de 9 ans il y a

A résolu


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

plus de 9 ans il y a

A résolu


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

plus de 9 ans il y a

A résolu


How to Concatenate two strings?
How to Concatenate two strings?

plus de 9 ans il y a

A résolu


Sort rows of a matrix
Sort rows of matrix A in an ascending order according to the last column Example input: A = [1 2 3;7 8 9;4 5 6]; Exam...

plus de 9 ans il y a

A résolu


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

plus de 9 ans il y a

A résolu


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

plus de 9 ans il y a

A résolu


find number of buses for given to and from lines
find number of buses for given to and from lines

plus de 9 ans il y a

A résolu


how to find size of a matrix?
how to find size of a matrix?

plus de 9 ans il y a

A résolu


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

plus de 9 ans il y a

A résolu


Find cosine between two given vectors u and v.
Find cosine between two given vectors u and v. Example u = [5 2 0 5 3 0]; v = [3 2 5 1 ...

plus de 9 ans il y a

A résolu


how to convert given text into all upper case letters?
how to convert given text into all upper case letters?

plus de 9 ans il y a

A résolu


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

plus de 9 ans il y a

A résolu


Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

plus de 9 ans il y a

A résolu


Reverse digits of a number
Reverse digits of a number. For example, return *321* for the input *123* . The left-hand zeros can be discarded. For exam...

plus de 9 ans il y a

A résolu


Find the sides of an isosceles triangle when given its area and height to its base.
Find the sides of an isosceles triangle when given its area and height to its base. Example S=12, h=4, result will be [5 5 6]...

plus de 9 ans il y a

A résolu


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

plus de 9 ans il y a

A résolu


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

plus de 9 ans il y a

A résolu


Create square matrix with given conditions.
Create square matrix which should be like given matrix M. M = [ n^2 n*(n-1) n*(n-2) ... n*2 n; n*(n-1)...

plus de 9 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 9 ans il y a

A résolu


Number of elements in matrix
Calculate the # of elements for given matrix

plus de 9 ans il y a

A résolu


How do you make seven even?
Take away the s.

plus de 9 ans il y a

A résolu


Convert array of decimal numbers into hexadecimal numbers array.
Convert array of decimal numbers into hexadecimal numbers array. Example x =[ 32 33 34 35 36 37 38 ...

plus de 9 ans il y a

A résolu


Convert array of decimal numbers into binary numbers array.
Convert array of decimal numbers into binary numbers array. Example x = [1 2 3 4 5 6 7 8 ]; re...

plus de 9 ans il y a

A résolu


Count given word x in text.
Count how many times given word x repeats in text.

plus de 9 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 9 ans il y a

A résolu


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

plus de 9 ans il y a

A résolu


How to find average of each column ?
How to find average of each column for a given matrix?

plus de 9 ans il y a

A résolu


product of given two numbers?
product of given two numbers?

plus de 9 ans il y a

A résolu


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

plus de 9 ans il y a

Charger plus