People who code: we want your input. Take the Survey

Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. Don’t use both the [matlab] and [octave] tags, unless the question is explicitly about the similarities or differences between the two. When using this tag, please mention the MATLAB release you're working with (e.g. R2017a).

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

Pixel labelled image is must for semantic segmentation using deep learning in matlab?

I have large set of CT images containing lung regions. But I don't have corrosponding pixel labelled images. So how I could do semantic segmentation using DL in matlab. Like a test program I created 6 ...
1
vote
1answer
74 views

gradient descent diverges extremely

I have manually created a random data set around some mean value and I have tried to use gradient descent linear regression to predict this simple mean value. I have done exactly like in the manual ...
1
vote
0answers
23 views

Backpropagation on a CNN

I have tried searching for this, but it seems like no one addresses a key aspect of this problem (or maybe I'm overthinking this): So, first let's assume we have a 3x3 image with a single channel, and ...
1
vote
1answer
557 views

Tensorflow simple neural network has very bad performance in regression (curve fitting) problem

I'm trying to implement a very simple one layered MLP for a toy regression problem with one variable (dimension = 1) and one target (dimension = 1). It's a simple curve fitting problem with zero noise....
0
votes
0answers
17 views

Siamese Network with Triplet Loss function using the Matlab's Deep Network Designer

How can I design a Siamese Network with Triplet Loss function using the Matlab's Deep Network Designer? I was not able to achieve this.
0
votes
1answer
12 views

Reducing features to 2 by PCA confusion Matlab

I am trying to reduce $500$ features to $2$ as an assignment. I wrote the following code and I am deeply concerned if it is true as when I plot it on the graph it does not look good. It should look ...
3
votes
1answer
237 views

Does CART algorithm takes into account in the order of the set of attributes?

when using matlab command 'fitctree' for classification purpose, and I change the order of the attributes I do not find the same Tree and thus the same classificaiton error? why? CART algorithm does ...
1
vote
2answers
74 views

Where can I find an algorithm for human activity classification using thigh and shank sensors?

I am working on a project where I initially need to classify the type of activity a subject is performing based on raw accelerometer and gyroscope data from the thigh and shank of both legs. The type ...
0
votes
1answer
12 views

Performing 1D Depthwise conv using Keras 2D Depthwise conv

I would like to perform a 1D Depthwise convolution (ie the first step of the depthwise-separable convolution) for a machine learning model I am working on. This means that for an input activation ...
0
votes
0answers
16 views

differences in NN optimization algorithm between Matlab and Scikit-Learn

I'm trying to build a neural network to estimate the responses of a nonlinear system. My database contains 1000 load cases (inputs) and maximum responses (outputs) from numeric simulations. I'm using ...
0
votes
0answers
16 views

Algorithm for clustering worm-like points in a cloud

I have a cloud of points were I can clearly identify worm-like patterns in the cloud, along the Z-axis but embedded in the noise. My goal is to cluster the points that belong to the same "worm'. ...
0
votes
0answers
17 views

Problem in working out an example of SVM: mathematical steps

I am trying to code SVM from scratch using a small toy problem that involves five support vector values. In the code below, there are 5 support vectors arbitrary chosen and denoted by the variables <...
0
votes
0answers
13 views

K-means related question

I am a new user to Matlab kmeans and have the following question: I would like to use the following call from a Python application which is listed in this URL. ...
0
votes
0answers
38 views

Method of hyperparameter tuning for regression tree ensembles in Matlab

What regression tree ensemble methods and what parameters does Matlab actually consider in hyperparameter tuning? The documentation appears to be sparse, to say the least. See https://se.mathworks.com/...
2
votes
0answers
120 views

FUZZY ARTMAP for continuous data [closed]

I was going through an IEEE research paper which has used Fuzzy ARTMAP for predicting the price of electricity given some highly correlated data. As per my basic understanding about Fuzzy ARTMAP, it ...
3
votes
2answers
1k views

Why training and validation similar loss curves lead to poor performance

I am training a binary classification neural network model using matlab the graph that I got using 20 neurons in hidden layer is given below. the confusion matrix and graph between cross entropy vs ...
0
votes
0answers
28 views

Results of quadratic SVM in Matlab are different from the results obtained in Python

I am trying to replicate a quadratic SVM classifier from Matlab to Python, however I am having different results regarding the accuracy. In Matlab the accuracy is 0.8955 meanwhile in Python the ...
0
votes
1answer
52 views

What's the correct form of use the real coded genetic algorithm?

I'm new to genetic algorithms, but I haven't found specific info about real-coded GA's. I want to do antenna array optimization by using the real values of antenna position, phase, and amplitude, but ...
2
votes
2answers
61 views

Finding roots of a non linear expression when multiplied with a linear expression

Here is a simple polynomial equation: b^2 + 2b + 1 = 0 I could easily solve this as: ...
0
votes
0answers
40 views

Looking for a machine learning algorithm that can classify line plots into two groups?

I have a dataset of many 2-D line plots that represent height versus position measured from an AFM. I am interested in training a model by classifying these lines into two groups: presence of a defect ...
1
vote
1answer
302 views

How can I create a pixel labelled image for Semantic Segmentation?

I am following the Semantic Segmentation Examples tutorial by MathWorks. I understand that I can load pixel labeled images ...
-1
votes
2answers
165 views

How to find the average over an area of center for a given radius

folks, I have an excel file which contains the lat and long values of the center of a Tropical Cyclone(TC). The excel file is as given below: Also, I have an NC(NetCDF) file which is of that of ...
0
votes
1answer
19 views

Optimization function returns the same optimal parameters for two labels

I've recently enrolled in the Coursera machine learning, and am working my way through making my own classifier for the Iris dataset problem using matlab. I'm training a classifier for each species (...
2
votes
1answer
82 views

How to calculate the different metrics for multi class classification

My confusion matrix has the following structure: (Predicted) C= ( actual) [TN FP FN TP] How can I calculate the Mathews ...
2
votes
2answers
142 views
0
votes
1answer
54 views

MNIST 2-layer NN failing to recognize certain digits

Recently I've been taking a look into some basic multilayer neural networks, and I decided to try tackling the MNIST database of handwritten digits using a 2 layer neural network with 100 neurons in ...
4
votes
1answer
622 views

Implementing PatterNet in Python as it is in MATLAB

NOTE: This question was first posted in Cross Validated Stack Exchange but I was instructed to move it off that website as it was not a good fit. I am new in implementation of machine learning, neural ...
0
votes
1answer
35 views

How to get used to matricial/vectorial operations?

I came to data science/machine learning from another background in computer science and i feel that i'm lacking of experience with matricial/vectorial operations. Python or Matlab, for instance, ...
0
votes
0answers
32 views

How do I apply radon and iradon function in a 3D image

I am using matlab image processing , I have a 3DBodyphantom image of a CT scan which displays the axial,coronal and saggital slices, I am to apply to the image the radon function to get a sinogram and ...
1
vote
2answers
2k views

Using the trainbr function for classification in Matlab

I am training a neural network for classification using Matlab, and I don't understand if I can use the trainbr training function (Bayesian Regularization ...
0
votes
0answers
26 views

looking for a correlation function for categorical + numerical datasets in matlab

I am looking for a function in Matlab that calculates the correlation coefficient of a data set that includes categorical + numerical data. I am quite surprised this isn't as straightforward as I ...
0
votes
2answers
7k views

How to calculate Precision and Recall using confusion matrix in Matlab?

I am working on 3 class problem.How to calculate precision,recall ,f-score,MCC of each class while using MATLAB. Here is my confusion matrix: ...
1
vote
1answer
40 views

how to read emotion label of MSP-IMPROV dataset samples?

I need to read MSP-IMPROV dataset audio file's to conduct research. I read the help file that says 15th character of the file name, shows the emotion label of each utterance. For example: MSP-IMPROV-...
4
votes
1answer
285 views

Minimize correlation between input and output of black box system

I am not sure if "minimize correlation" is the right title for this issue but I could not find a better sentence to describe what I would like to achieve. Let's say that I have a black box with ...
7
votes
1answer
2k views

How to draw a simple LSTM network

I'm new to deep learning, I am learning LSTM for my PhD work. This is a simple LSTM network for sequence classification. This code is from MATLAB tutorial: ...
1
vote
0answers
19 views

Matlab Optimization. Meaning of warning: “The slope should be 2. It appears to be 1.”

I'm using the manopt package to solve some optimization problems in matlab. The problem is of the form. problem.cost = @(x) f(x) problem.egrad = @(x) g(x) After the problem definition, I check ...
1
vote
0answers
17 views

Optimization problem with different type of constraints

I'm new to optimization problems. I want to find optimum values for my objective function. You can imagine my function as E = f(t1, t2, t3). I want to minimize <...
1
vote
0answers
7 views

I want to use a neural network for a control block in MATLAB, but without Simulink

I have a physical model that produces an error value after running, which I want to minimize by a Neural Network. I can not find a MATLAB function however that lets me run the program and use the RMSE ...
0
votes
1answer
16 views

Why normalize function has a different result on a matrix vs single value?

I have a matrix like: B=[ 1.5035; 1.5728; 1.6485; 1.5369; 1.5467; 1.572; 1.5374; 1.787; 1.5825; 1.6905]; Using normalize function like normalize(B,'range') ...
2
votes
1answer
5k views

K-Fold Cross validation confusion?

I am using K-Fold cross validation to test my trained model, but was amazed that for every K-fold the accuracy is different. For instance, if I use 5 K-fold, every fold has a different accuracy. So, ...
1
vote
0answers
18 views

Embedding git commit into the resulting data

Our pipeline works something like that: Collect bunch of raw data (10-100 GB) from microscope Process data using MATLAB scripts Change few parameters based on raw data, as well as add new features to ...
2
votes
1answer
289 views

Hyperparameter optimization performance comparison

I have used Bayesian optimization for hyperparameter tuning in a machine learning model. What is the best way to compare the performance of network with and without Bayesian optimization? I found some ...
-1
votes
1answer
62 views

kmean clustering

I am having a problem in Matlab. I would like to use kmeans clustering and then get the value and index of the centroid. For example, if there is an $5*5$ array, we do kmeans clustering where k=2 and ...
3
votes
1answer
718 views

How to find the various matrix sizes in designing a CNN

I am trying to understand CNN especially the maths and working mechanism using Matlab as the coding language. I have few confusion regarding the concept and the associated programming and will be ...
2
votes
0answers
209 views

Using LSTM to forecast vehicle position - multivariate time series - Matlab

I am trying to train an LSTM model on Matlab to forecast the position of a vehicle when driving around a roundabout. My main concern right now is that my dataset consists of 4 features (X position, Y ...
0
votes
1answer
53 views

Is it possible to change test and train data size when using crossvalind function with Kfold param?

I was looking at MATLAB Help and want to work with "crossvalind" function. It would two parameters that you can use it. If you use "HoldOut" you can define partition size of test and train data set ...
1
vote
1answer
35 views

Is there a common strategy to measure if a difference-significance of two areas under two ROC curves

I conduct sound detection experiments with mice. I have a stimulus sound and a "noise" sound that shoukd be ignored. I want to measure how well the mouse ignors the noise (with respect to, say, ...
2
votes
1answer
368 views

Vectorizing equation in MATLAB

I am working on collaborative filtering using matrix factorization in MATLAB. I am using Gradient Descent for parameter learning. The cost function to optimize is : $ J = {\left\| I \odot (R - U V') \...
1
vote
1answer
35 views

Why GA convergence curves continue as two parallel lines?

I'm working on a optimization problem and using GA algorithm (in MATLAB, ga function). As you know MATLAB plots GA result with two curves, one for the best values and other to show the mean values ...
0
votes
1answer
48 views

What method is recommended after outliers removal?

I have a data of mice reaction times. In every session, there are some trials in which the mouse "decides of a break" and responds after a long time to these specific trials. I was thinking ...