Community Profile

photo

Terek Li


Aktiv seit 2016

Statistiken

  • Thankful Level 3
  • First Answer

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


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

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ?

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

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

mehr als 7 Jahre vor | 0

Frage


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 ?

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten