Skip to content

Aliakbar-Mohsennejad/Electromagnetic-MATLAB-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧲 Electromagnetics Project – MATLAB Simulations

This repository contains two academic exercises developed using MATLAB as part of a small project for the Electromagnetics course during the 4th semester at K. N. Toosi University of Technology.

📌 These exercises are not advanced or professional-level projects, but part of my learning process and demonstrate my early interest in physics-based simulations, coordinate transformations, and vector field visualization.


🧮 Part 1 – Coordinate System Transformation

This MATLAB script converts a 3D vector between Cartesian, Cylindrical, and Spherical coordinate systems based on user input. It includes built-in logic for transforming values and outputs results in the desired coordinate system.

📌 Topics covered:

  • User input validation
  • Basic geometry and coordinate math
  • Data output formatting

🖼️ Example Output:
Coordinate Transformation Sample


🌌 Part 2 – Electric Field of a Dipole

This simulation visualizes the electric field generated by an ideal electric dipole in 3D space. Field vectors are calculated at discrete points and normalized for better visual representation using MATLAB's quiver3 function.

📌 Topics covered:

  • Electric field calculation for a dipole
  • Normalization and interpolation
  • 3D vector visualization

🖼️ Example Output:
Dipole Field Plot


🧾 Documentation

A Word document summarizing the questions, mathematical model, and points for feedback is available in the docs/ folder:

📄 docs/MATLAB_Dipole_Question_Document.docx


🔖 Disclaimer

This project is a basic academic exercise, not intended to represent high-level research or publication. It reflects my learning journey and early hands-on coding in MATLAB during my undergraduate studies.


About

MATLAB simulation of coordinate conversion and dipole field – undergraduate project in electromagnetics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages