Community Profile

Contact

Top 1% contributor

Hi, There is an extra optional argument that will do that: >> m=[1 6 2 8 9]; [Y,I] = sort(m,'descend') Y = ...

accepted

0

Answered 3 years ago

In theory you could just use the basic Compiler product to produce a dll. In my opinion it is much more convinient to use the NE...

Answered 4 years ago

For a more robust deployment I would also suggest you change this line: load (['D:/Test/Tree.mat'], 'Tree') The reason i...

1

Hi, I have an object that can fire many events, and computing the events takes a significant amount of time. Therefore, I wou...

3 Answers

Asked 4 years ago

I have a symbolic expression (the real expression can be anything the Symbolic Toolbox supports) but for example we can use the ...

Hi, I am writing some object oriented code (with classdef), and it would be convenient for me to have a function like this: ...

2 Answers

Asked 2 years ago

Hi, There are certain functions I don't want to execute in parallel, and I would like to throw an error if they are. Is there...

Hi, I have a symbolic expression that can be evaluated to true / false, and I would like to get that result back to MATLAB. Th...

1 Answers

What R2011a feature do you like the most?

Hi, I have some code that generates an xml string. For some reason, when I try to use special characters the xmlread function i...

Asked 3 years ago

Hi, We have been working on paralelizing our code, and we have found that when an error occurs inside a parfor it is hard to ...

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

Solve this!

3 years ago

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

Regardless of input, output the string 'yes'.

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

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

Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

Load more