Question

How to change color bar limits in imagesc?

For heatmap, thisc command would work: 'ColorLimits',[50 100] but it did not work for imagesc.

2 days ago | 1 answer | 0

Question

How to show original values in the heatmap and in the colorbar while log(data) is used to make heatmap?

Here is the heatmap code: heatmap(x,y,log(ave_array)); I want the values shown on the heatmap subspace NOT be in log scale and...

6 days ago | 1 answer | 0

Question

How to make a structure to be input of a function and then its updated version to be output of the function?

I want to make a structure to be input of a function and then do some analysis and add some fields to the structure and return t...

6 days ago | 2 answers | 0

Question

How to make multiple strings arrays of repeating word and number?

I need to make an array that is like this: ["var1","var2","var3",...,"var18"] the size of the array may change (larger or sma...

7 days ago | 1 answer | 0

Question

How to merge two arrays/rearrange two table colums one by one

Let's say I have tow arrays both are horizontal with the same size like: A=[1,2,3,4,5]; B=[11,22,33,44,55]; I want to merge t...

7 days ago | 1 answer | 0

Question

Matlab vs python for CNN

I have not done CNN before and was wodering about CNN in python vs matlab. A comparison between strenght and weaknesses between ...

14 days ago | 1 answer | 0

Question

How to obtain a ROC curve through cross validation on the out of fold data in cross validation?

I am using fitcsvm and need to obtain ROC curve for the fold that is not used in training. Here is the code: classificationSVM...

1 month ago | 0 answers | 0

Question

Why perfcurve does not return a consistent result?

when I run the perfcurve function like this: [X,Y,T,AUC] = perfcurve(labels,scores,posclass) some times the length of X, Y and...

1 month ago | 0 answers | 0

Question

Why posterior probability of support vector machine classifier uses the prediction function of KNN ?

In this link that explains the fit spoterior for SVM model, in the firts example: ScoreSVMModel = fitPosterior(SVMModel) then ...

1 month ago | 0 answers | 0

Question

Edit the plot of multcompare

Here is the produced plot of multcompare: I want to change the color of each plot so that I would have a specific color for e...

1 month ago | 0 answers | 0

Question

How to add std to heatmap cell?

I need to add std to the heatmap so that instead of showing 68.64 in the below heatmap, it shows 68.64 plus or minus STD.

1 month ago | 0 answers | 0

Question

Can matlab save a structure to an excel file so that each individual field is saved to one excel sheet?

Lets assume I have structure "struct" with fields: A, B, C and each field is a matlab table. I want to save this structure in on...

1 month ago | 1 answer | 0

Question

Is SVM sensitive to unbalanced observations? The observations in one class is 3-4 times of the observation in an other class in binary classification

My first question is sensitivity of SVM to unbalanced datapoints. How much SVM is sensitive to that? And is there any function...

2 months ago | 0 answers | 0

Question

Does setting "prior" in the classification play a role in the classification algorithm or it just modifies observations in the prior classification step?

Based on the explanation in the "Algorithm" section here: It seems that prior probablities are only used to remove datapoints...

2 months ago | 1 answer | 0

Question

if conditional 2 out of 3

I have three groups of number which can be 0 or 1. like A, B and C. I want to write a conditional to be true if 2 of three value...

2 months ago | 1 answer | 0

Question

Matlab 3 variable function plot

The equation is: f(X1,X2,X3)=bt1.x1+bt2.X2+bt3.X3+b1 bt1 to bt3 and b1 are all constants. and I want to plot it in 3D. I trie...

2 months ago | 2 answers | 0

Question

How to make fsurf a solid colored surface with no shade? and make the surface tranparent.

I am using fsurf to plot a surface. I wana make the whole surface a solid color and want to make the surface transparent. How ca...

2 months ago | 1 answer | 0

Question

Generating the confusion matrix of average value

I want to make the confustion matrix of the average value. According to here, "C = confusionmat(group,grouphat) returns the conf...

2 months ago | 1 answer | 0

Question

Operate on all the columns of a matrix

I have a 100*3 matrix and want to normalize each column. Sth like this: for i=1:3 norm=normalize(mat(:,i)) end Is there ...

2 months ago | 1 answer | 0

Question

How to make plot colors transparent?

I need to make the color of this plot transparent as I am going to add some data points to it and I want the data points to be v...

2 months ago | 1 answer | 0

Question

3d scatter plot for a grouping data

I am searching for a 3D version of gscatter. I know it was asked a while ago and apparently there was no function available at t...

2 months ago | 1 answer | 0

Question

Is it possible to save an object to a structure field?

I am interested to put an object into a structure field like: struct.field=object; is it possible?

2 months ago | 1 answer | 0

Question

Does using rng guarantee having exactly the same result in each simulation?

I am using rng to be able to reproduce data in each simulation. But I noticed there is a slightly difference for the result in e...

3 months ago | 0 answers | 0

Question

What statistical test is available in matlab for unbalanced samples other than ttest?

I have two data sets that have different sizes and need to do statistical test. ttest can handle unbalanced ttest but because of...

3 months ago | 1 answer | 0

Question

There is no InnerPosition property on the matlab.graphics.layout.TiledChartLayout class.

Any idea how to solve this error? t = tiledlayout(2,2,'InnerPosition',[0.1300 0.1100 0.7750 0.8150]); here is the error: Erro...

3 months ago | 1 answer | 0

Question

Automated multiple image arrangement using matlab

I need to arrange many images to make slides out of them. They are save with apporpriate names. For example I need to say place ...

3 months ago | 0 answers | 0

Question

imagesc vs heatmap: which one has more flexibility?

I am currently using heatmap but I found it does not have enough functionality like I can not change the colorbor size and style...

3 months ago | 1 answer | 0

Question

write a structure into the excel file not writing the structure contents

I use struct2table(strucutre name,'AsArray',1) to convert the strctrue to the table and then using writetable to write it on...

3 months ago | 1 answer | 0

Question

How to represent p-value on a heatmap?

I am plotting heatmap that each indivdual elemetn of it hasa p-value. I am interested to add the p-valeu of each individual elem...

3 months ago | 0 answers | 0

Question

How to explore off diagonal elements in matrices without avoiding the for loop?

I need to search if the value of off diagonal elements of many matrices are larger than a specific number. Was wondering if I ca...

3 months ago | 1 answer | 0