Community Profile

photo

Sam


16 total contributions since 2012

Contact

Sam's Badges

  • First Review
  • Thankful Level 1

View details...

Contributions in
View by

Question


how to quickly decompressed a matrix
I have compressed matrix a, first row is index and second row is value, how can i convert it to full matrix b of 2x10 elements b...

4 years ago | 1 answer | 0

1

answer

Question


Matlab compiler with CPLEX API
Is it possible to 'bundle' CPLEX optimization API into MATLAB application and deploy the application to a machine without Matlab...

5 years ago | 1 answer | 1

1

answer

Question


sprintf with leading minus sign
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 >...

6 years ago | 3 answers | 0

3

answers

Question


ismember for string matrix
I have two string matrices; A=['c1' 'c ' 'b ' 'd9']'; %UNIQUELIST B=['d9' 'c1']'; %ORIGINALLIST I would lik...

6 years ago | 2 answers | 0

2

answers

Question


string comparison strcmp did not seem to work
I have two identical string matrices (see attached MAT file) but dont know why strcmp below returns 0 while I was expecting one:...

6 years ago | 1 answer | 0

1

answer

Question


count a vector with continuous non zero elements
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...

7 years ago | 2 answers | 0

2

answers

Question


how to compile code into executable and library separately
I have a program with one "Main function" file and a series of "Other files" functions being called from the main function file ...

7 years ago | 0 answers | 0

0

answers

Question


RUN POWERSHELL SCRIPTS PS1
Anyone knows how to execute the powershell scripts in MATLAB? Thanks Sam

8 years ago | 1 answer | 0

1

answer

Question


open file, read a line then, rewind a line
after fgetl(fid), the file position indicatior will be moved to the next line in the file, how could I rewind the indicator back...

8 years ago | 1 answer | 1

1

answer

Question


search for string array index
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';] ...

8 years ago | 1 answer | 0

1

answer

Question


vectorize a for loop
I am finding a optimal way of vectorizing the following piece of code (of course the real data is much greater than this): ...

8 years ago | 6 answers | 2

6

answers

Question


can not load mat file correctly
How to make the function load_dataset below return x value of 2 ? Thanks S >>clear all; >>x=2;y=4; >>save('test...

8 years ago | 2 answers | 0

2

answers

Question


disable "Excel COM server"
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...

8 years ago | 1 answer | 0

1

answer

Question


XLSREAD and XLSWRITE error
I launch a matlab-compiled application through windows hpc scheduler which eventually performs some xlsread and xlswrite functio...

8 years ago | 0 answers | 0

0

answers

Question


Optimize the FOR loop
I am learning to optimize the following nested FOR loop, any comments are appreciated, x=[537 558 583 606 631 655 666 700...

8 years ago | 2 answers | 0

2

answers

Question


recreate vector
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 ...

8 years ago | 1 answer | 0

1

answer