[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.9567505 [View]
File: 1 KB, 131x66, Capture.png [View same] [iqdb] [saucenao] [google]
9567505

Matlab/coding question:
I have two vectors X and V, if the nth element of X is negative I want the nth element of V to be multiplied by -1. Is there a more elegant way to do it than with a "for" loop and an "if"?

Navigation
View posts[+24][+48][+96]