Community Profile

photo

Saf el


Active since 2017

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


About preallocating for speed
There is a " for loop" in my program and Matlab gives me a suggestion to consider "Preallocating" for speed. I want to learn how...

6 years ago | 1 answer | 0

1

answer

Question


what is the meaning of these two lines?
siz = size(P); for i = 1:siz(2) with P is a 2*k matrix, P =[p1 .....pk] I want to understand what siz(2) means in the f...

6 years ago | 1 answer | 0

1

answer

Question


How can I extract entries from a matrix and a vector into a new vector in a specific way?
Hello, I want to extract the entries of a matrix and a vector into a new vector, like this: M = 0.6000 0.8000 ...

6 years ago | 2 answers | 0

2

answers