Community Profile

Contact

Professional Interests: Economics, Space

Top 5% contributor

Hello, There is this method TreeBagger.combine that can combine two independently trained TreeBagger classifiers. The prob...

2 Answers

0

Asked 3 years ago

Hi, Try to create two functions in Matlab that contain getmcruserdata and setmcruserdata: function SetMCRUserData (Valu...

accepted

Answered 4 years ago

* Let's say you have a matrix of 10x10: x=rand (10,10); * Sort it by the columns in ascending order: y=sort ...

From xlswrite help: xlswrite(filename,A) Input Arguments: A Two-dimensional numeric or character array or, if ...

Hello! My intention is to use a Random Forest Ensemble, trained previously in Matlab, in a Java application. My Matlab function...

Asked 4 years ago

Hi everybody! I have a question about the Matlab deploy-tool. When using it to produce a Java .jar file there is an option, ...

1 Answers

Hello! I built and compiled my first serious Matlab program to Java class using the Java Builder. I wrote Java driver, which co...

Hi Guys! I have a noob question, that was bothering me. Let's say I have three variables: Var1=0, Var2=0, Var3=0. I also have...

Hello! Until now my Matlab usage was limited by the needs of simple calculations, simulations and graphical presentation of d...

Asked 5 years ago

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

Solve this!

3 years ago

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

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

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

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

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

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Regardless of input, output the string 'yes'.

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

Given the input n, return true if n is odd or false if n is even.

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Load more