Question

matlab 2015 bug - x position of bars in bar plot

hbar = bar( [1 2 ; 3 4]) Since Matlab 2015 , I am unable to get or infer the x position of each bar. hbar(1).XData ...

5 years ago | 1 answer | 0

Question

readtable bug - if file has only one line, then readtable throws error ONLY if ReadRowNames = 1

Consider a tab-delimited file with only a header line (no data otherwise) e.g. m.txt: name<tab>age Then rea...

5 years ago | 1 answer | 1

Question

readtable bug with tab delimiter and commas within a field.

Consider a tab-delimited text file, in which a given field may contain a string with commas, e.g. ...... A<tab>B<tab>C,D...

5 years ago | 0 answers | 0

Question

readtable truncates rownames if using ReadRowNames

One of the options for "readtable" is "ReadRowNames". Apparently, when "ReadRowNames" is true, Matlab *silently truncates the...

5 years ago | 1 answer | 0

Question

writetable takes forever - what is faster?

I have a table with ~500,000 lines and ~20 columns. The table is mixed text and numbers. It is about 90 Mb as a text file. ...

5 years ago | 2 answers | 1

Question

multiple random samples of size k

I would like to generate _M_ random samples, each of size _k_ , from the integers 1:n without replacement. (i.e. generate ...

6 years ago | 3 answers | 0

Question

vectorized non-linear matrix assignment

Let A be an m x n matrix (both m,n > 1). let "X" p-by-1 be a set of row indices of A, and "Y" p-by-1 be a set of column in...

6 years ago | 1 answer | 0

Question

make clustergram without printing

My script makes hundreds of clustergrams. Each time the "clustergram" function is called, it makes a figure window, which "pops...

6 years ago | 2 answers | 0

Question

add colorbar to clustergram from within script

How do you add a colorbar to a clustergram plot from within a script? I know you can click on a figure to do it, but i am m...

6 years ago | 1 answer | 0

Question

error in documentation example for "gene ontology enrichment in microarray data"

In MATLAB 2015a online documentation for GO enrichment, i.e. "gene ontology enrichment in microarray data", there is an error i...

6 years ago | 0 answers | 0

Question

MATLAB error when closing files in Editor

When I am done working on a script/m.file open in the Matlab editor, I click the "x" to close it and Matlab generates an error i...

6 years ago | 0 answers | 0