Community Profile

photo

Terek Li


11 total contributions since 2016

Terek Li's Badges

  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Question


How to find the length of segments of a matrix that meet certain condition?
Hi guys, I am trying hard to think of an algorithm for this, but no luck. If I have a matrix a = [77 77 77 79 79 79 77 77 77 ...

casi 3 años ago | 1 answer | 0

1

answer

Question


textscan 4th row into one string
Hi, I have a huge file that I want to read only the 4th row with delimiter ';'. I want to read everything in this row into on...

más de 3 años ago | 1 answer | 0

1

answer

Question


Convert vector to single double number
I have a vector [ 0 0 1 0 1 0 1] is there a quick way to convert it to a single number: 10101 ?

casi 4 años ago | 2 answers | 0

2

answers

Answered
Why does an if block only run once?
'if' statement is not a loop, if you want to look it then use 'while'

casi 4 años ago | 0

Question


concatenate all value in a matrix into one number
if I have a matrix [1 2 3 4], is there a quick and easy way to obtain 1234 ?

casi 4 años ago | 2 answers | 0

2

answers

Question


how to find index of a cell that contains a numeric value?
Hi, there are several posts regarding this question, but none of their solutions actually work... I have a 1000*1 cell contai...

casi 4 años ago | 1 answer | 0

1

answer

Question


How to emtpy part of a matrix?
If I have a matrix like this : a = [1 2; 3 4; 5 6; 7 8] is there a quick way to remove '3' and '4' from the matr...

casi 4 años ago | 1 answer | 0

1

answer

Question


how to remove a specific section of a cell
For example if I have a 5:2 cell, each cell is filled with value. Is there a way to empty all the value in the 1st column excep...

casi 4 años ago | 1 answer | 0

1

answer

Question


How to find which column consists character 'example' in cell c{1,2}(:,1)
so I have a cell called 'c', I want to know which column the characters 'example' exist in c{1,2}(:,1).... Is there a function ...

casi 4 años ago | 2 answers | 0

2

answers

Question


how to run block of a function only if block of another function has been ran
What is the most efficient way to code so that one block of function A is ran only when another block of function B has been ran...

casi 4 años ago | 1 answer | 0

1

answer

Question


How to process multiple txt files in a loop?
I have multiple txt files in a folder, and I wrote a code to process a single file: function output = do(input) fil...

casi 4 años ago | 2 answers | 0

2

answers