Top 10% contributor
I am finding a optimal way of vectorizing the following piece of code (of course the real data is much greater than this):
Asked 2 years ago
3 years ago
I have two identical string matrices (see attached MAT file) but dont know why strcmp below returns 0 while I was expecting one:...
Asked 9 months ago
How can I disable "Excel COM server" in MATLAB ? (I am coding in a machine with MS Excel, but will run the code on non-Excel mac...
Asked 3 years ago
I have a compressed vector like this:
a_compressed = [9 3 5]
a_ending_indx = [4 6 9]
Without using FOR loop, what is the ...
I am trying to use SPRINTF to print the following variable's value. How to print it so it does not without the minus sign
Asked 2 months ago
I have two string matrices;
A=['c1' 'c ' 'b ' 'd9']'; %UNIQUELIST
B=['d9' 'c1']'; %ORIGINALLIST
I would lik...
Asked 7 months ago
Is there a way to count non-zero elements in vector x below
x=[0 1 1 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 0 1]
so that th...
Asked 1 year ago
How to make the function load_dataset below return x value of 2 ?
I am learning to optimize the following nested FOR loop, any comments are appreciated,
x=[537 558 583 606 631 655 666 700...
Anyone knows how to execute the powershell scripts in MATLAB?
after fgetl(fid), the file position indicatior will be moved to the next line in the file, how could I rewind the indicator back...
I have a very big string array to search but it is in this format:
x=['a b c0 d';
'a b e1 f';
'a x d1 f';]
I have a program with one "Main function" file and a series of "Other files" functions being called from the main function file ...
I launch a matlab-compiled application through windows hpc scheduler which eventually performs some xlsread and xlswrite functio...
Join the conversation