Faculty member in civil & environmental engineering

Solved

Toolbox check part 3

In my ongoing quest to highlight obscure parts of MATLAB, the latest challenge is to take 2 string inputs, one a MATLAB toolbox ...

3 días ago

Solved

Spot the rectangle (Part 2)

This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://www.mathworks....

4 días ago

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

5 días 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...

5 días 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......

5 días 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...

5 días 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...

6 días 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

6 días 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...

6 días 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...

7 días 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...

7 días 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...

7 días 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...

7 días 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 ...

7 días ago

Solved

Joules to Megatons of TnT

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

7 días ago

Solved

Rankine to Celsius Converter

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

7 días 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 ...

7 días 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...

7 días 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...

7 días 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...

7 días 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...

7 días 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.

7 días 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 ...

7 días 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...

7 días 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...

7 días 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...

9 días 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...

10 días ago