Community Profile

Contact

Top 1% contributor

Write a function a that takes a date vector as an input and returns the number of hours until the weekend begins. The beginning...

Solve this!

0

6 months ago

To restate what you posted, you have a set of data consisting of _(value, input_time)_ pairs. At some interval, you want to rep...

accepted

Answered 1 year ago

Well, I learned a new trick today. My method works on arrays without singleton dimensions and can be extended to 3-D or more, b...

1722 views

Responded 1 year ago

It looks like what you want to do is similar to the kron function that Matlab has for multiplication. Try using this code, whic...

If you want to keep your for loop, you can do it like this: d=[]; for k=1:length(b) end This appends the next set of numbers t...

1654 views

Just like Matthew's problem <http://www.mathworks.com/matlabcentral/cody/problems/2793 2793> and Edward's problem <http://www.ma...

1 day ago

Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

2 days ago

Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

5 days ago

Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

6 days ago

Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

8 days ago

Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

12 days ago

*<http://en.wikipedia.org/wiki/Aye_(yes) Aye !!!>*

19 days ago

find 9 commandments of number of following numbers. <http://electrical4u.com/9s-complement-and-10s-complement/ Example> ...

FInd 10's complement of number <http://electrical4u.com/9s-complement-and-10s-complement/ Example>

Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

20 days ago

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

22 days ago

A block diagonal matrix is a square matrix that can be written as A = [a 0 0 0 0 b 0 0 0 0 c 0 ...

23 days ago

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

28 days ago

Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

29 days ago

Load more