bababui
Junior Member level 3
I have an array say x=[1;2;3;4;5;0;5;3;0;1;2;3] and I need to find a comand or some way to find elements of array x that are = 0 and know their position within array x.
Can anyone think of a way to do this?
So something that given x=[1;2;3;4;5;0;5;3;0;1;2;3] would output y=[6,9] where 6,9, are positions of 0 value in array x
Something that I thought would be a simple problem got me stuck in my project
Please let me know if you have any suggestions.
Thanks
Can anyone think of a way to do this?
So something that given x=[1;2;3;4;5;0;5;3;0;1;2;3] would output y=[6,9] where 6,9, are positions of 0 value in array x
Something that I thought would be a simple problem got me stuck in my project
Please let me know if you have any suggestions.
Thanks