What does "Lv" mean? I don't know what the L is for.

2 views (last 30 days)
Below is how I wanted to solve the problem, below that is how it is supposed to be solved. What is that "Lv"? Length?
v= v( v>0 )
x= length( v )
totalsum = sum( v .* sum( A( :, x) ) )
Given a matrix A( m x n ) and a vector v( 1 x n )

Accepted Answer

Walter Roberson
Walter Roberson on 2 Dec 2018
"logical" . A logical vector is built and used to index arrays
  4 Comments
bobsoney bobsoney
bobsoney bobsoney on 2 Dec 2018
So basically only the position of the ones counts if you use a logical vector. (?) Therefore making the correct resolution valid.

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!