Gelöst


Determine connected components of a graph
Adjacency matrix of an undirected graph is given. Return the number of connected components in the graph.

mehr als ein Jahr vor

Gelöst


row-th maximum row elements
Input a is a square matrix of size n*n. Output vector v is of size 1*n. The ith element of output v is the ith largest element o...

mehr als ein Jahr vor

Gelöst


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

mehr als ein Jahr vor

Gelöst


Sum all integers from 1 to 2^x
Given a number x, your function must return the summation of all integers from 1 to 2^x.

mehr als ein Jahr vor

Gelöst


Return the sequence element I
Given a positive integer, x, return a positive integer, y, which is the xth term in the sequence [1 2 2 3 3 3...], in which one ...

mehr als ein Jahr vor

Gelöst


Soccer - TOTO
How many different outcomes are there in a soccer-TOTO with n games? For each game there are three results: win - loss - equa...

mehr als ein Jahr vor

Gelöst


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

mehr als ein Jahr vor

Gelöst


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

mehr als ein Jahr vor

Gelöst


pizza deals
Given two pizza slices of different sizes: * Slice A with angle alpha1, radius r1, and price p1 * Slice B with angle alpha2,...

mehr als ein Jahr vor

Gelöst


Find Month & day for given day number of a year
Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


string comparision
compare two strings if both are same return 1 else return 0

mehr als ein Jahr vor

Gelöst


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

mehr als ein Jahr vor

Gelöst


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

mehr als ein Jahr vor

Gelöst


New Matrix with vector addition on diagonal
consider 2 vectors x=[1 2 3] y=[4 5 6] then generate a new Matrix, where Addition of x & y will be diagonal Elements...

mehr als ein Jahr vor

Gelöst


Return all matrix elements except elements on diagonal
Consider a given Matrix A=[a b c; d e f; g h i] then return a row vector T such that it contains all the El...

mehr als ein Jahr vor

Gelöst


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

mehr als ein Jahr vor

Gelöst


Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

mehr als ein Jahr vor

Gelöst


Find the density of non-zero values

mehr als ein Jahr vor

Gelöst


UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.

mehr als ein Jahr vor

Gelöst


UICBioE240 2.8
Convert x number of hours into seconds.

mehr als ein Jahr vor

Gelöst


UICBioE240 2.7
Given two 3-element vectors x1 and x2, create a 3 x 3 x 3 matrix Y where (:,:,1) has all values of x1 * x2, (:,:,2) has all valu...

mehr als ein Jahr vor

Gelöst


UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.

mehr als ein Jahr vor

Gelöst


UICBioE240 2.2
Make a 3x4 matrix that contains all ones.

mehr als ein Jahr vor

Gelöst


UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions A = 2+5i B = 2+5*i C = both are okay Write capital letter a...

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.16
sin^2(pi/6) + cos^2(pi/6)

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.15
Calculate: sin(pi/6) cos (pi) tan(pi/2)

mehr als ein Jahr vor

Gelöst


UICBioE240 problem 1.14
Solve 3^x = 17

mehr als ein Jahr vor

Mehr laden