Solved

Beginner's Problem - Squaring

Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

5 years ago

Solved

Union of two set decreasing order

Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

5 years ago

Solved

Column arrays: Transpose a row array

* Construct a row array countValues with elements 1 to endValue, using the colon operator. * Transpose countValues to result in...

5 years ago

Solved

Concatenating strings

* Write a statement that assigns fullName with firstName, a space, then lastName. Ex: If firstName is Alan and lastName is Tu...

5 years ago

Solved

Relational operators and row arrays: Run times

* Construct a row array fastRunTimes containing all elements of runTimes equal to or less than 480 seconds. Ex: If runTimes =...

5 years ago

Solved

Linear-spaced points array

* Construct a row array plotPoints with 5 values that are spaced linearly from lowValue to highValue. Ex: If lowValue is 1 and ...

5 years ago

Solved

Indexing the array: Shift right with variable sized arrays

* Write a statement to shift the array contents 1 position to the left. * Assign the rightmost element with -1. Ex: [12, 85...

5 years ago

Solved

Indexing the last element: Print queue

* Delete the last element of row array printQueue.

5 years ago

Solved

Adding an element: Ticker tape

* Add stockPrice to the beginning of row array tickerTape

5 years ago

Solved

Concatenating arrays

* Assign studentIDs with concatenated row arrays groupA and groupB

5 years ago

Solved

Delete blanks at the end of string

you got to delete all blank spaces which appears at the end of string

5 years ago

Solved

Find minimum and maximum elements of an array

For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

5 years ago

Solved

Rotate a matrix for 180 degree

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

5 years ago

Solved

Rotate a matrix for 180 degree

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

5 years 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; ...

5 years ago

Solved

UICBioE240 problem 1.3

Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

5 years ago

Solved

UICBioE240 problem 1.2

Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

5 years ago

Solved

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

5 years ago

Solved

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.

5 years ago

Solved

Create a figure and plot data

Given two data vectors (x,y), open a new figure and plot the data. Return the figure handle.

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

5 years ago

Solved

UICBioE240 2.10

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

5 years ago

Solved

Back to Basics - Find no. of elements in a matrix?

Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

5 years ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

5 years ago

Solved

MATLAB Basic: rounding II

Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

5 years ago