Solved

Subtract two positive numbers

Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

circa 3 anni ago

Solved

Create a matrix X, where each column is a shifted copy of the vector v

Example : in->v = (1:5)'; 1 2 3 4 5 out-> [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 ...

circa 3 anni ago

Solved

Signed Magnitude

For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

circa 3 anni ago

Solved

Test if a matrix is symmetric

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

circa 3 anni ago

Solved

UICBioE240 problem 1.5

Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

circa 3 anni ago

Solved

Check if equal

Return true if all the elements of an nD array are equal, false otherwise.

circa 3 anni ago

Solved

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

circa 3 anni ago

Solved

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

circa 3 anni ago

Solved

Sum the squares of numbers from 1 to n

For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

circa 3 anni ago

Solved

Determine the mean of matrix

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

circa 3 anni ago

Solved

Find the product of a Vector

How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

circa 3 anni ago

Solved

Divide by 4

Given the variable x as your input, divide it by 4 and put the result in y.

circa 3 anni ago

Solved

Convert given decimal number to binary number.

Convert given decimal number to binary number. Example x=10, then answer must be 1010.

circa 3 anni ago

Solved

Reverse a string

Reverse the given string. Example input = 'reverse' output = 'esrever'

circa 3 anni ago

Solved

Sum of odd numbers in a matrix

Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

circa 3 anni ago

Solved

Sum of series I

What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

circa 3 anni ago

Solved

Skip by a multiple

Given an integer create an array of its multiples. Array must have a length of 15

circa 3 anni ago

Solved

Given the variable x as your input, multiply it by four, then divide it by two. Then put the result in y.

If x = 5, y = 4*5/2 = 10

circa 3 anni ago

Solved

Rotate Matrix @180 degree

Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

circa 3 anni ago

Solved

UICBioE240 problem 1.6

Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

circa 3 anni ago

Solved

Which quadrant?

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

circa 3 anni ago

Solved

Vectorizing, too easy or too hard?

Please insert a . before any ^, * or / in the string. That's it!!

circa 3 anni ago

Solved

Create a Multiplication table matrix...

Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

circa 3 anni ago

Solved

Check to see if a Sudoku Puzzle is Solved

*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

circa 3 anni ago