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.
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
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
A Word document summarizing the questions, mathematical model, and points for feedback is available in the docs/ folder:
📄 docs/MATLAB_Dipole_Question_Document.docx
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.

