Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
%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);

Réponse acceptée

Star Strider
Star Strider le 12 Jan 2018
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.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by