Community Profile

photo

Leonardo Fernandes


Active since 2018

Followers: 0   Following: 0

Statistics

  • First Review
  • Thankful Level 1

View badges

Feeds

View by

Question


How can I retrieve the numbers that appears only one time in a cell?
cell = {[1 2 3] [3 4] [1 2 3 4 5 6] [4 6 7]}; The desired answer would be: 1 2 3 4 5 6 7. Thank you all and best regards.

5 years ago | 1 answer | 0

1

answer

Question


Hello. I'm using the function ''shortestpath'' to solve a problem. However, I wish the output was a matrix with two columns, one the ''from'' nodes and the other the ''to'' nodes. Any ideas?
%%using the shortestpath function on the example below, we have the following answer: from = [1 2 3 3 5]; to = [...

6 years ago | 1 answer | 0

1

answer