When we pluck a guitar string, we get a wave -- but never a pure sinusoid. Instead, we get a complex superposition of sinusoids, given by the Fourier decomposition (quoting this answer):
$$ y(x,t) = \sum_{k=1}^{\infty} \sin \left(\frac{k\pi x}{\ell} \right) \left( A_k \sin \left( \frac{k \pi c t}{\ell} \right)+ B_k \cos \left( \frac{k \pi c t}{\ell} \right) \right) $$
for string length $\ell$ and wave speed $c$.
My understanding is that where we pluck determines the amplitudes $A_k$ and $B_k$; Fourier analysis tells us those amplitudes, given the initial condition of the pluck shape $y(x,0)$.
But how can we determine the frequency of the complicated function $y$ from the Fourier analysis, i.e. from knowing the $A_k$ and $B_k$? Is the frequency of $y$ just the fundamental frequency $\frac{c}{2\ell}$?
I don't have a guitar handy, so I don't know whether plucking at different positions changes the pitch we hear. Does plucking far up the string give a different pitch than plucking in the middle? If so, then the frequency of $y$ can't always be the fundamental.