Git Product home page Git Product logo

gram-schmidt-calculator-vector-toolkit's Introduction

Gram Schmidt Calculator and Vector Toolkit

GitHub code size in bytes GitHub repo size in bytes GitHub

This software performs various functions on inputted sets of vectors. Among its features are the ability to perform the Gram Schmidt process to orthonormalize a set of vectors, draw 2D and 3D basis plots of vectors, compute vector projections, test whether a set of vectors form an orthonormal basis, and more. The various features are listed in more detail below.

Features

  • Performs the Gram Schmidt process on a set of vectors. Outputs a corresponding set of orthonormal basis vectors.
  • Orthogonalizes a set of vectors without normalization.
  • Draws a 2D or 3D basis plot of vectors
  • Projects a vector onto another vector.
  • Projects a vector onto an n-dimensional subspace.
  • Tests whether a set of vectors form an orthonormal basis.
  • Displays a list of the main properties of a set of vectors.
    • Dimensions
    • Reduced-row matrix form
    • Eigenvalues
    • Eigenvectors (Right and Left)
    • Characteristic Polynomial
    • Orthonormal basis vectors
    • Basis plot

Instructions

  • The software is simple and straightforward to use. All scripts except Test.m are MATLAB functions. To perform any of the above features, simply create an input and run the corresponding function in the MATLAB command window.
  • All function inputs should either be a single vector or a matrix, where each column represents a vector.

File descriptions

  • gramSchmidt.m - inputs a matrix (set of column vectors) and performs the Gram Schmidt process, outputting a set of orthonormal basis vectors.
  • orthogonalize.m - performs the Gram Schmidt process without orthonormalization. Generates a set of orthogonal basis vectors.
  • isOrthonormal.m - inputs a matrix and tests whether the column vectors are orthonormal.
  • proj.m - inputs 2 vectors and computes the projection of the first vector onto the second.
  • orthoProj.m - inputs a vector and a matrix with n columns. Computes the projection of the vector onto the n-dimensional subspace of the matrix. Also works with just 2 vectors.
  • plotBasis.m - inputs a matrix and draws a basis plot if its column vectors. Must be either 2D or 3D.
  • findProperties.m - inputs a matrix and lists the properties of the set of column vectors.
  • Test.m - a script designed to test the Gram Schmidt and isOrthonormal functions.
  • test3a.mat - a data file used for testing.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development, testing, or consumer purposes.

Installing

  • Download the MATLAB installer from the Mathworks site.
  • Install MATLAB.
  • Download this repository.
  • Open MATLAB.
  • Add the folder containing these files to your MATLAB path.
  • You can now freely use these MATLAB functions!

Bugs

  • findProperties.m only lists Eigenvalues and Eigenvectors if the input matrix is 3-dimensional.

License

This project is licensed under the MIT License - see the LICENSE file for details

gram-schmidt-calculator-vector-toolkit's People

Contributors

ichowdhury01 avatar

Stargazers

 avatar  avatar

Forkers

sandra-bardhi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.