Very Informative video, showed how to optimize using index in very well manner
@ahmedamr52653 жыл бұрын
Extremely useful and engaging! thank you :)
@sedenions4 жыл бұрын
w = v(v >= 0); didn't work in my editor or command window. Was I supposed to spend another two lines setting a value to w and v?
@fitzlellc35994 жыл бұрын
You need to have a vector v for that line to work. Try v = randn(1,20)
@tabasdezh5 жыл бұрын
This was a great tutorial...thanks for sharing.
@DGVFX4 жыл бұрын
How do you apply logical indexing in Tables?
@fabianrestrepo825 жыл бұрын
Hello Mike. One question. What is the difference of using jj = jj+1 every other iteration and using w(end + 1) to reference the new element of w. Thanks
@ahmeddiaa74096 жыл бұрын
very enjoyable .......good work sir
@JBNaik4 жыл бұрын
in this video 23.45 at this time v(v
@ZeeSounds4 жыл бұрын
Great stuff. Thanks so much for your time and effort. If i wanted to record the positions of lets say nonzero elements in an array, how can I do that?
@rubenayla4 жыл бұрын
You could use a for loop and check every element or use this es.mathworks.com/help/matlab/ref/find.html k = find(X,n) returns the first n indices corresponding to the nonzero elements in X. As an example: a = 2*rand(16,1)-1 indexes = find(a > 0)
@g38ra8 жыл бұрын
Idk if that's scripted or not @4:17 , but it still made me chuckle, good one lol.
@oliverburke7 жыл бұрын
So many bits in it were funny. I like learning from Mr. Mike Fitzpatrick.