© 2018 American Physical Society. We present results of centroid energies ECEN, of the isoscalar (T=0) and isovector (T=1) giant resonances of multipolarities L=0-3 in Ca40,48, Ni68, Zr90, Sn116, Sm144, and Pb208, calculated within the fully self-consistent Hartree-Fock-based random phase approximation theory, using 33 different Skyrme-type effective nucleon-nucleon interactions of the standard form commonly adopted in the literature. We compare the results of our theoretical calculations with the available experimental data. We also study the sensitivity of the calculated ECEN to physical properties of nuclear matter (NM), such as effective mass m∗/m, nuclear matter incompressibility coefficient KNM, enhancement coefficient κ of the energy weighted sum rule for the isovector giant dipole resonance and symmetry energy at saturation density, associated with the Skyrme interactions used in the calculations. This is done by determining the Pearson linear correlation coefficient between the calculated ECEN and a certain NM property. Constraining the values of the NM properties, by comparing the calculated values of ECEN to the experimental data, we find that interactions associated with the values of KNM=210-240MeV and κ=0.25-0.70 best reproduce the experimental data.