PCA demonstration and tool

Version 1.0.3 (2.59 KB) by Lyes Demri
This is just a small demo of PCA and includes a function to encode a data matrix with the smallest amount of dimensions
10 Downloads
Updated 11 Sep 2023

View License

PCA_demo.m is a demonstration of Principal Component Analysis in action and is based on Ian Goodfellow's Deep Learning Book.
PCA.m is a function that will reduce the data you feed it using the smallest amount of dimensions necessary to represent it while preserving a reconstruction error below a threshold you can choose.

Cite As

Lyes Demri (2025). PCA demonstration and tool (https://ch.mathworks.com/matlabcentral/fileexchange/135141-pca-demonstration-and-tool), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.3

Fixed exit criterion

1.0.2

Fixed output such that each point is a row of c (instead of a column)

1.0.1

Added varargin to PCA function

1.0.0