Solved

Volume of a box

Given a box with a length a, width b, and height c. Solve the volume of the box.

5 years ago

Solved

Matlab Basics - Create a row vector

Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

5 years ago

Solved

Matlab Basics II - Intervals

Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

5 years ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

5 years ago

Solved

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

5 years ago

Solved

Matlab Basics - Absolute Value

Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

5 years ago

Solved

Matlab Basics - y as a function of x

Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

5 years ago

Solved

Matlab Basics - Convert a row vector to a column vector

Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5 years ago

Solved

Multiply by 3

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

5 years ago

Solved

multiply by three

Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

5 years ago

Solved

Y=X

Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

5 years ago

Solved

Divide by 4

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

5 years ago

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

String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

5 years ago

Solved

String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

5 years ago

Solved

String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

5 years ago

Solved

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

5 years ago

Solved

Combine the first and last names

MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

5 years ago

Solved

Words Count: A String Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

5 years ago

Solved

Words Count: A Cell Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

5 years ago

Solved

When Was That Goal Scored?

We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

5 years ago

Solved

Use a timetable to analyze a train timetable (Part 5)

You are analyzing a train timetable (you have some time to kill since you just missed your train!) How many trains depart each d...

5 years ago

Solved

Use a timetable to analyze a train timetable (Part 4)

You are analyzing a train timetable (you have some time to kill since you just missed your train!) What is the average daily tri...

5 years ago

Solved

Use a timetable to analyze a train timetable (Part 3)

Oh no, you missed your train to Boston (again?)! How many times can you miss that train today? (In other words, how many Boston ...

5 years ago

Solved

Use a timetable to analyze a train timetable (Part 2)

Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Yo...

5 years ago

Solved

Use a timetable to analyze a train timetable (Part 1)

Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

5 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 3)

We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

5 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 2)

We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

5 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 1)

We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

5 years ago

Solved

How Many Months Until It's Today Again?

Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...

5 years ago