What is meant by this syntax : L(1) , what does these braces after any variable mean?

6 次查看(过去 30 天)
%This is just a portion of code so don't bother about actual values: L = a; n = n1; fmax = n./L; dfx = 1/L(1); dfy = 1/L(2);

采纳的回答

Star Strider
Star Strider 2018-1-12
The parentheses and the numbers refer to the first 2 elements in vector ‘L’.
See Matrix Indexing (link) for a discussion on numeric indexing in vectors and matrices.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by