1function [x no_value] = GB_spec_Vector_extractElement (A, i, xclass) 2%GB_SPEC_VECTOR_EXTRACTELEMENT a MATLAB mimic of GrB_Matrix_extractElement 3 4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 5% SPDX-License-Identifier: Apache-2.0 6 7if (size (A,2) ~= 1) 8 error ('invalid vector') ; 9end 10 11[x no_value] = GB_spec_Matrix_extractElement (A, i, 0, xclass) ; 12 13 14