Community Profile

photo

Leonardo Fernandes


2 total contributions since 2018

Leonardo Fernandes's Badges

  • First Review
  • Thankful Level 1

View details...

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

2 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 = [...

3 years ago | 1 answer | 0

1

answer