Community Profile

photo

Bernhard Suhm


MathWorks

95 total contributions since 2017

Bernhard Suhm's Badges

  • Solver
  • Knowledgeable Level 3
  • 6 Month Streak
  • Revival Level 3
  • First Answer

View details...

Contributions in
View by

Solved


Find the peak 3n+1 sequence value
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...

7 dagen ago

Solved


Similar Triangles - find the height of the tree
Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...

17 dagen ago

Answered
Classification learner - identify false prediction indexes
Unfortunately, that isn't supported directly in the Classification Learner. But you can export your trained model to the MATLAB ...

19 dagen ago | 0

Solved


Finding Perfect Squares
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...

19 dagen ago

Solved


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

19 dagen ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

23 dagen ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

23 dagen ago

Solved


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

24 dagen ago

Solved


Make a checkerboard matrix
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. Examp...

24 dagen ago

Solved


Find the sum of all the numbers of the input vector
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 ...

24 dagen ago

Solved


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

24 dagen ago

Answered
Principal Component for Shape Analysis.
Per documentation of pca, your "Mode" are " .. the representations of X in the principal component space. Rows of scorecvorrespo...

6 maanden ago | 0

| accepted

Answered
precision recall curve from Bag of Visual words classifier
You need to systematically vary the threshold (or related parameter) determining whether you accept or reject the detection. You...

6 maanden ago | 1

| accepted

Answered
Why identical outputs despite different inputs to a machine learning models
Of course it could predict the same category for different kinds of inputs, especially if there aren't a lot of categories... Or...

6 maanden ago | 0

Answered
Sequentialfs, the squential feature selection function of matlab
You determine which model it uses by how you define the function fun that calculates a criterion based on training and test data...

6 maanden ago | 0

Answered
Adding a machine learning algorithm
The Learner Apps are targeted at casual users, empowering them to train classification and regression models without writing cod...

7 maanden ago | 0

Answered
How to check after completing the Image Processing Machine Learning program.
Your code isn't complete - it references custom functions you (or your teacher) defined somewhere else such as trainImageCategor...

10 maanden ago | 0

Answered
Is it possible to combine two neural networks in MATLAB?
MATLAB has an AdditionLayer that allows you to combine outputs of two separate strands in your deep learning network. With R2018...

10 maanden ago | 3

Answered
How can I use the PCA function to find the principle components of a variable?
You'll get the loadings for your variables. But think about whether applying PCA this way to your data makes sense. We'll expect...

10 maanden ago | 0

Answered
Can someone tell me if there is an error in fitcdiscr function?
LDA fits normal distributions with the same covariance. QDA allows different covariances. Fitting normal distributions including...

10 maanden ago | 0

| accepted

Answered
Display bug with confusionchart for percentages summary
Many machine learning related charts will start to show some weird behavior if you try to visualize a lot of classes. If you are...

11 maanden ago | 0

| accepted

Answered
Long time to process - fit copula model
Sounds like you need to bring some parallelization to bear. If your computer had multiple cores, you could leverage them if you ...

11 maanden ago | 0

| accepted

Answered
question about determining the correct number of clusters (documentation)
You can use the silhouette plot or evalclusters function to evaluate the quality of your clustering. There's a little more info ...

11 maanden ago | 0

Answered
Help, how can get result of classification using SVM with csv files ?
Use csvread to read those files into an array or table, train (or "fit") an SVM model on the trainings set using fitcsvm, and th...

11 maanden ago | 0

Answered
question about k-means clustering metric choice
If you have any further questions, follow up. Otherwise, can you kindly "accept" Walter's answer?

11 maanden ago | 0

Answered
How can I use random forest classifier with an excel file?
Something like this: data = xlsread('filename'); mdl = fitcensemble(data,'class');

11 maanden ago | 0

Answered
How Can I Configure "the Trial License" for Cloud Use?
You can't cloud-enable a trial "license". You need to request a cloud-enabled trial, which is just become available at <https://...

11 maanden ago | 0

Answered
Feature Selection PCA in Haar for face recognition
Well, you could try whether PCA finds a linear mapping among the 16 Haar wavelets that expresses most of the variability in your...

11 maanden ago | 0

Answered
How to utilize GPU while the classifiers were running on the classification learner application?
<https://www.mathworks.com/help/stats/statistics-and-machine-learning-toolbox-functions-with-gpuarray-arguments.html This page> ...

11 maanden ago | 1

| accepted

Answered
How to use a KNN classifier from Matlab in c++
Little late, but with MATLAB Coder you can convert a prediction function for KNN to C/C++ code, and then use that with your othe...

11 maanden ago | 0

Load more