Gelöst


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

etwa 16 Stunden vor

Gelöst


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

etwa 16 Stunden vor

Gelöst


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

etwa 16 Stunden vor

Gelöst


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

etwa 16 Stunden vor

Gelöst


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

etwa 16 Stunden vor

Gelöst


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

etwa 16 Stunden vor

Gelöst


Add 2 Vectors

etwa 16 Stunden vor

Gelöst


Size

etwa 16 Stunden vor

Gelöst


Transpose of matrix
Transpose of matrix as per test cases

etwa 16 Stunden vor

Gelöst


Compare two strings.
Compare two strings, whether they are equal or not.

etwa 16 Stunden vor

Gelöst


Create tangent function out of sine function only
Please don't use cosine and tangent functions

etwa 16 Stunden vor

Gelöst


kmph to mph converter
Convert the speed in miles/hour to km/hour.

etwa 16 Stunden vor

Gelöst


Frobenius McNugget Factorization
Mr. Frobenius McNugget is a peculiar man. As you might expect, he likes to eat Chicken McNuggets. But his love of number theo...

etwa 17 Stunden vor

Gelöst


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

2 Tage vor

Gelöst


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

2 Tage vor

Gelöst


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

2 Tage vor

Gelöst


prime test
find largest 2 digit prime number

2 Tage vor

Gelöst


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

2 Tage vor

Gelöst


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

2 Tage vor

Gelöst


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

2 Tage vor

Gelöst


Remove the positive integers.
Given array x (of integers), remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -...

2 Tage vor

Gelöst


Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

2 Tage vor

Gelöst


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

2 Tage vor

Gelöst


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

2 Tage vor

Gelöst


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

2 Tage vor

Gelöst


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

2 Tage vor

Gelöst


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

2 Tage vor

Gelöst


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

2 Tage vor

Gelöst


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

2 Tage vor

Gelöst


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

2 Tage vor

Mehr laden