Faculty member in civil & environmental engineering

Solved

Finding fourier transform of a given vector

Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

9 hours ago

Solved

THE CALCULATOR OF LOVE

In honor of Valentine's Day, program a love calculator that figures out the percentage of compatibility between two people using...

9 hours ago

Solved

Find all the zeros of sinus , cosinus and tangent in a given interval

The aim is to find all the zeros of a function within an interval. *Input* : * fcn : an anonymous function (@sin, @cos......

9 hours ago

Solved

Mandelbrot Number Test [Real+Imaginary]

The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

10 hours ago

Solved

Construct finite difference approximations of derivatives

In solving a differential equation with a finite-difference method, one computes derivatives with various combinations of the fu...

1 day ago

Solved

solve for y that is half as much as three less than one tenth of x

function y = half(x) y = (x * .1); end

1 day ago

Solved

Covering area

As an extension of the problem <http://www.mathworks.com/matlabcentral/cody/problems/416-polygon-area>, find the area, bounded b...

2 days ago

Solved

Wrap-around effect

In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

2 days ago

Solved

Leading-zero padding

Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum nu...

2 days ago

Solved

Calculate the probability that at least two people in a group share the same birthday.

Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015...

2 days ago

Solved

Numbers on 7-segment

This is a 7-segment: _ |_| |_| It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...

2 days ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.

given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

2 days ago

Solved

Joules to Megatons of TnT

Given joules, J, make a function that converts to megatons of TNT.

2 days ago

Solved

Rankine to Celsius Converter

Given input R, degrees Rankine, convert into degrees Celsius.

2 days ago

Solved

Logarithm with base other than 'e'

The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

2 days ago

Solved

Namespace

Create a set of n variable names 'a_1',...,'a_n' The result should be a column oriented cell array of strings. Example inp...

2 days ago

Solved

Sort rows of a matrix

Sort rows of matrix A in an ascending order according to the last column Example input: A = [1 2 3;7 8 9;4 5 6]; Exam...

2 days ago

Solved

Create a New_Word

The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

2 days ago

Solved

Find the distance traveled by a car given velocity and time.

A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

2 days ago

Solved

Speed of car travelling x meters in y seconds

What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

2 days ago

Solved

What are the odds?

Two numbers, A and B are drawn randomly and uniformly on [-R,R]. What is the probability that A*B < A+B. Your function should ...

2 days ago

Solved

Elapsed time is -0.005204 seconds.

Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

3 days ago

Solved

Minefield Sonar

*Background* In mine-hunting games (e.g. Microsoft Minesweeper), the user is provided with a covered grid that, upon a left c...

3 days ago

Solved

Convert elements in numeric array into different class

Write a function that converts elements in a numeric array into a different class. Example: a = [1:5]; % class: double b...

4 days ago

Solved

Find the numeric characters in a string and return their index

Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

5 days ago

Solved

Grandpa's telescope

Two grandkids Dorothy and Benjamin are sharing a telescope made by their grandpa, who used an old lens of spectacles as the obje...

7 days ago

Solved

Calculate the Damerau-Levenshtein distance between two strings.

<http://www.mathworks.co.uk/matlabcentral/cody/problems/2303-compute-hamming-distances-between-each-pair-of-rows-from-two-input-...

7 days ago