Community Profile

# Terek Li

11 total contributions since 2016

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

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

### 1

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

alrededor de 4 años ago | 1 answer | 0

### 1

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 ?

más de 4 años ago | 2 answers | 0

### 2

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

más de 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 ?

más de 4 años ago | 2 answers | 0

### 2

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

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

### 1

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

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

### 1

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

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

### 1

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

más de 4 años ago | 2 answers | 0

### 2

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

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