Question

increasing the fontsize of the y-label tickmarks on a dendrogram/tree

I created a dendrogram where the x-axis is the distance/dissimilarity between clusters and the y-axis are the objects. I want to...

environ un mois ago | 1 answer | 0

Question

customising dendrogram figure with colours

I want to customise a dendrogram output by putting colours into the branches. For example: rand(70, 10) where first 10 rows ...

environ un mois ago | 0 answers | 0

Question

plotting an open circle (open interval) in plot

i am plotting a function f =@(x) x.^2 but i want to put open circles at x = 0 and x = 4 because they are undefined at those poin...

environ un mois ago | 1 answer | 0

Question

creating a rainbow colour plot/trajectory

I was reading this: https://uk.mathworks.com/matlabcentral/answers/393810-multiple-colours-in-a-trajectory-plot to create a r...

2 mois ago | 2 answers | 0

Question

putting tick marks on a graph/trajectory

I have a set of coordinates that plots the trajectory of a moving body from point A to point B. Now I want to put some 'time inf...

2 mois ago | 1 answer | 0

Question

function to measure the correlation between nominal and continuous data

I am looking for a function that measures the correlation (Cramer's V, or something similar) of categorical + continuous data se...

3 mois ago | 0 answers | 0

Question

where to find a support vector machine tutorial

I am looking for a tutorial on implementing SVM from the ground up. I have seen in Mathworks some examples by using kernels. I w...

3 mois ago | 0 answers | 0

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

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

3 mois ago

Question

using lassoglm for logistic regression

I have 3 predictors that are numerical and 2 predictors that are categorical. The expected classes are simply yes or no, so I re...

3 mois ago | 0 answers | 0

Question

adding error bars of a different length than the data set

I have a data set of length 200, which I have plotted. I want to add the error bars, but of a shorter length than than the data ...

plus d'un an ago | 0 answers | 0

Question

there is something in the figure that I want to be deleted

Everytime I open a figure, I see this. The yellowish box with X: 4 and Y: 7.164. How do I delete this box so I can save this fig...

plus d'un an ago | 1 answer | 0

Question

leaving one out help

I want to make a loop for a vector s = [1:10], but for each round I want to leave one element. So for the first round, s = [1:...

plus d'un an ago | 1 answer | 0

Question

how to check the 'contribution' of each predictor in a linear regression

I have linear regression model, say with 5 predictors, . I wanted to know how we can perform tests regarding the 'contribution' ...

plus d'un an ago | 1 answer | 0

Question

question about RegressionPartitionedModel

I have a question about the RegressionPartitionedModel documentation. I understand this is an evaluation for error (cross-valida...

plus d'un an ago | 0 answers | 0

Question

getting the mean EXCEPT zero entries

I have a matrix, M = [zeros(10,10); 1 , 2 , 3 ,4 ,5,6,7,8,9,10]; I want to get the mean of each column, except the zero term...

plus d'un an ago | 1 answer | 0

Question

accessing data from cell arrays

I have cell A which is 1x2 in size. Each entry in the cell is a double with different sizes. Am I able to access the entries fro...

plus d'un an ago | 1 answer | 0

Question

fitting a linear model with constraints

I am trying to use fitlm, but by using nonnegative least squares. I am aware of lsqnonneg, but I am interested in looking at the...

plus d'un an ago | 1 answer | 0

Question

looking for nonnegative least squares solver

I am looking for a nonnegative least squares solver/toolbox. Anyone can point me to the right one? Thanks

plus d'un an ago | 1 answer | 0

Question

how to input multiple items given a prompt?

So far I only have worked with prompts giving one numerical response. (For example, input number: 10). That's it. Right now, I w...

presque 2 ans ago | 1 answer | 0

Question

fitting a linear model without an intercept term

I wanted to use the fitlm (linear regression function) but without the intercept term in the output. I wonder if there is a way ...

presque 2 ans ago | 1 answer | 0

Question

using different colours of points in a biplot

Hi, I have generated a biplot (used for PCA) and I wanted to use different colours for points according to my dataset. Right...

presque 2 ans ago | 1 answer | 0

Question

question about the resulting dendrograms in hierarchical clustering

I have a question about the resulting dendrogram in hierarchical clustering. I have 64 items that need to clustered by hiera...

presque 2 ans ago | 1 answer | 0

Question

question about determining the correct number of clusters (documentation)

I have a question about determining the correct number of clusters (in k-means clustering). In the documentation, there is a...

presque 2 ans ago | 1 answer | 0

Question

reading excel files with texts in matlab

I have an excel file with fields that are texts that I want to read. X = xlsread('filename') reads the numbers, but does not...

presque 2 ans ago | 2 answers | 0

Question

running k-means and getting different results run after run?

I am running k-means clustering algorithm on a data, and I don't understand why I am getting different silhouette plots each tim...

presque 2 ans ago | 1 answer | 0

Question

question about k-means clustering metric choice

In this documentation of K-means clustering: <https://www.mathworks.com/help/stats/k-means-clustering.html> I would like to a...

presque 2 ans ago | 1 answer | 0

Question

accessing data from a struct

I have R, which is a 1x1 struct, which contains a matrix named X. I want to access X, how do I this? I want to load X into the w...

presque 2 ans ago | 1 answer | 0

Question

retrieving data from a plot saved as fig

I was not able to save the data sets used to plot a graph, but I was able to save the plot as .fig. Am I still able to get t...

presque 2 ans ago | 1 answer | 0

Question

question on the lasso example in matlab documentation

In the Lasso documentation page here: https://www.mathworks.com/help/stats/lasso.html Construct the default lasso fit. B...

presque 2 ans ago | 1 answer | 0

Question

performing a least squares with regularisation in matlab

I have data sets X (2n by 8) and Y(2n by 1). I want to find the coefficients a so that Y = Xa. So we can perform a = X\Y (as a l...

presque 2 ans ago | 1 answer | 0