Question

xlswrite substitute that writes to specific columns

I would like to write a matrix to specific columns and rows of excel. xlswrite has this option but for compatibility issues I wo...

1 month ago | 1 answer | 0

Question

Delete specific columns of a table

I have a huge table (more than 30 columsn) and I would like to delete all columns except the ones that I determined. Let's say...

1 month ago | 1 answer | 0

Question

How to make a xlsx file to a comma delimited csv file?

I need to covert a xlsx file to a comma delimited csv file. writematrix is not a good option as its input is matrix and in my ca...

2 months ago | 1 answer | 0

Question

How to remove colorbar and heatmap black borders?

I need to remove colorabar and heatmap blck borders. Any idea?

5 months ago | 1 answer | 0

Question

The interpretation of the error

I recieve this error but the code keeps running: Invalid or deleted object. Error in matlab.graphics.controls.internal.ToolT...

8 months ago | 1 answer | 0

Question

How to determine the functions used in a long matlab script?

I am organizing a long matlab script and I need to seprate the functions that this script calss to transfer all to an other fold...

9 months ago | 2 answers | 0

Question

Parameters of multivariate multinomial distribution using Naive Bayes classifier

Due to having categorical feature, I fitted multivariate multinomial distribution to a Naive Bayes classifier. I can not find th...

9 months ago | 1 answer | 0

Question

How to reorganize the data in table?

I have a large table like this: (the first row is column name "E" and "M") I want to know how many "blc" has "m" and how many "...

9 months ago | 1 answer | 0

Question

Yaxis becomes periodic after using ylim

Here is the y axis without using ylim: and here is the yaxis after using ylim([50 100]) why it looks weird? how can I ...

9 months ago | 1 answer | 0

Question

How to change properties of several plots simultaneously?

I want to set properties of several plots all at once instead of setting them individually. figure(1) plot(x,y,'--gs','LineWi...

9 months ago | 1 answer | 0

Question

Why matlab scatter plot edges looks strange/old fashined?

I am intersted to make a plot similor to: Here is what matlab plots: I changed the edge width and it became worse: I t...

9 months ago | 0 answers | 0

Question

Is it possible to track changes to the script in matlab?

I was editing a code a week ago. I want to contine working on it after a week. I do not remember what changes I made and what wa...

9 months ago | 1 answer | 0

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.

10 months 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...

10 months 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...

10 months 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...

10 months 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...

10 months 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 ...

11 months 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...

11 months ago | 1 answer | 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...

11 months 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 ...

11 months 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...

11 months ago | 0 answers | 1

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.

12 months 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...

12 months 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...

12 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...

12 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...

1 year 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...

1 year 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...

1 year 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...

1 year ago | 1 answer | 0