Professional Interests: Economics, Space
Top 5% contributor
There is this method TreeBagger.combine that can combine two independently trained TreeBagger classifiers.
Asked 4 years ago
Try to create two functions in Matlab that contain getmcruserdata and setmcruserdata:
function SetMCRUserData (Valu...
Answered 4 years ago
* Let's say you have a matrix of 10x10:
* Sort it by the columns in ascending order:
From xlswrite help:
Two-dimensional numeric or character array or, if ...
My intention is to use a Random Forest Ensemble, trained previously in Matlab, in a Java application. My Matlab function...
I have a question about the Matlab deploy-tool.
When using it to produce a Java .jar file there is an option, ...
I built and compiled my first serious Matlab program to Java class using the Java Builder. I wrote Java driver, which co...
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...
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...
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.
[1 2 3] and [10 15 20]
should result in
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.
Input x = [1 2 0]
Output y is 0
There will always be at least one prime in the matrix.
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.
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
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.
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.
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.
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...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries