Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MATLAB_Code

Overview

This repository collects MATLAB learning code for optimization, decision-making methods, graph algorithms, shortest-path experiments, and LTspice-related laboratory analysis. The code is organized as a learning archive rather than production software.

Repository Structure

  • Source_Code contains MATLAB scripts and functions grouped by topic.
  • Example_Data contains small input datasets used by selected scripts.
  • Reports contains the organization and audit report.

Optimization

Decision-Making Methods

Graph Theory and Shortest Paths

Graph_Theory-Shortest_Path contains graph plotting notes, a shortest-path script, and the supporting find_Path function.

LTspice-Related MATLAB Labs

Circuit_Simulation-LTspice contains MATLAB plotting and data-analysis scripts related to LTspice laboratory work. Small LTspice data files are stored under Example_Data.

Requirements

The code was statically checked with MATLAB R2017b. Several scripts use functions from the Optimization Toolbox, including linprog, intlinprog, and fmincon. Plotting_Syntax.m includes a biograph example, which may require the Bioinformatics Toolbox in older MATLAB installations.

How to Run

Open MATLAB from the repository root, add the repository to the MATLAB path if needed, and run individual scripts from their topic folders. Some decision-making scripts request input interactively from the MATLAB command window. Scripts that depend on included example data use relative paths where practical.

Data and Dependencies

Included example data covers TOPSIS, grey relational analysis, fuzzy comprehensive evaluation, and LTspice lab exercises. Entropy_Weight_Method.m references date.xlsx, but that exact input file was not present in the source folder, so the script is retained with this limitation documented.

Code Check Status

MATLAB checkcode was run without executing the scripts. In the final static pass, 15 of 23 MATLAB files had no warnings. The remaining 8 files produced 18 style or maintainability warnings, mainly semicolon, preallocation, bracket, and output-list style suggestions. No checkcode invocation failed.

Known Limitations

This repository preserves learning exercises and does not claim that every script is independently runnable. Some scripts require interactive input, MATLAB toolboxes, or external data not included in the original source package. Generated outputs and workspace backups were excluded from version control.