[ad_1]
Use the special end keyword:
lastelement = myvector(end);
[ad_2]
solved Returning the last element of a vector with an unknown length [closed]
[ad_1]
Use the special end keyword:
lastelement = myvector(end);
[ad_2]
solved Returning the last element of a vector with an unknown length [closed]