#!/usr/bin/env Rscript
# Importing required library
# Define a function to generate a matrix and perform PCA
{
# Set the seed for reproducibility
# Generate a nxm random matrix
matrix_data <-
# Print the generated matrix
# Perform PCA
pca_results <-
# Print the principal components
}
# Test the function with different matrix sizes
#perform_pca(3, 5)
#perform_pca(5, 5)
#perform_pca(5, 7)