Transfer Student Capable GPA Calculator

gpafilxchng1.m is a user friendly script that calculates a students gpa's.


Updated 17 Aug 2022

View License

This script predicts the gpa's of up to 3 schools (and cumulative) from classes completed and graded, and from classes yet to be finished or taken (via the user estimating his grades). After the first input the script uses a for loop to have the user input the information for each class included in the first input. Enter the points and units of classes already officially graded, for each school, in the first 6 lines (SCHLx_p and SCHLx_u), before running the script. If the user wants the gpa of a single school or 2 schools, enter 0 for SCHLx_p and SCHLx_u for those schools not used, and the results for those schools will be NaN because of the division of zero by zero (0/0). NaN stands for "Not a Number". Up to 12 classes can be calculated into all the school gpa's for each script run.

Cite As

David Cazenave (2023). Transfer Student Capable GPA Calculator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Changed title in description.


Added clear all.

Changed screenshot.

Deleted obsolete break statement.
Modified comments and description.
Added a screenshot.
Added clear variables.
Corrected description.