Community Profile

Contact

Professional Interests: quantitative finance, statistics

Top 5% contributor

This reply is very late, but I hope it can help users who get to this thread by searching. Experimenting with mfilename in scrip...

0

Answered 8 months ago

That's what good typography, common sense, and logic tells me. If I have a vector [3.14, 6.28, 7.50], the use of two decimal dig...

0 Answers

Asked 2 years ago

Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

Solve this!

4 months ago

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

Determine the mean of matrix without using mean function Hint: use simple algorithm

Create an array (n,n) where only diagonal elements are '1' and others are '0' EX: n = 3; then Resultant array would be [ 1 0...

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

3 years ago

Given a and b, return the sum a+b in c.

Regardless of input, output the string 'yes'.

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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