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

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

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

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

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

10 dagar 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

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

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

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

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

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

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

11 dagar ago

Solved

Joules to Megatons of TnT

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

11 dagar ago

Solved

Rankine to Celsius Converter

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

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

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

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

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

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

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

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

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

11 dagar ago