Community Profile

photo

Anteneh Zewdu


Last seen: 1 day ago Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Answered
How can I set multiple variables to the same initial value efficiently?
I found the answer from a friend [a, b, c, d] = deal(5)

5 years ago | 0

Question


How can I set multiple variables to the same initial value efficiently?
I hate using the following way of defining variables; a= 5, b=a, c=a, d=a, etc I have a lot of variable taking the same intial...

5 years ago | 2 answers | 0

2

answers