Using AI to modify MATLAB-Scripts to MATLAB-Apps: General solution to computational problem.
Summary
This activity teaches educators/students to use a few of the basic concepts of AI and fast track the implementation of Scripts-to-Apps in MATLAB. The user is required to have previous knowledge using Scripts and at least the basic concept of MATLAB Apps.
I'm still working on converting some scripts from last year's MATLAB workshop, applied to solve electric circuits for simulated solutions and operational amplifier models.
Learning Goals
1. The primary goal is to introduce the use of AI for MATLAB problem solutions.
2. The development of these tools will allow the user to enhance the way you implement the solution for different problems in extended areas of science and technology.
3. The conversion from SCRIPTS to APPS will facilitate the use of your solution, creating a standalone version.
Context for Use
This activity can be implemented on any course that requires the use of MATLAB (Basic, Intermediate, Advanced) with more efficiency. Reducing the time required to create all the code starting from scratch. We can make Artificial Intelligence systems an ally to improve the results of our solutions or simply a model for more accelerated learning.
Description and Teaching Materials
The activities can have a variety of implementations depending on the type of subject taught. In my case, the use of MATLAB is aimed at solving some basic electricity or electronics exercises. For this reason, the models to work will be associated with this field. For the activities, it is required for students to have basic experience of solving exercises on electricity subjects (The topic depends on the teaching course). Students are encouraged to consult an AI reference to obtain detailed guidance on using MATLAB to create an APP that calculates and plots the output voltage for an Op Amp. This approach will provide them with the specific instructions needed to design the user interface and implement the necessary functions in MATLAB's App Designer. By leveraging AI assistance, students can ensure that they follow best practices in code structure, layout, and functionality, making the APP both user-friendly and efficient in calculating and displaying the results indicated.
Teaching Notes and Tips
Teaching Notes and Tips
Select a problem to solve, based on the level of your students and class type.
Create a solution using MATLAB.
The results of your solution could be used from simple simulation and show the results. Use as a complementary lecture for students' visualization of the concepts, or to request the students to modify the live script to solve a different problem type with the enhancement of AI to accelerate the implementation of the computational solution.
Assessment
For each MATLAB activity, depending on the results you are interested in the activity, the assessment could be:
1- Engagement with the student to use computational tools for solving problems.
2- Ability to solve engineering problems using MATLAB and AI.
3- Ability to modify existing MATLAB M-files/live scripts using AI to adapt the solution to different problems and convert it to an MATLAB APP.
References and Resources
MATLAB for Students: https://www.mathworks.com/products/matlab/student.htm
This teaching activity was created as a part of the Teaching Computation with MATLAB Workshop held in 2023 at Carleton College. https://drive.mathworks.com/sharing/72f46f34-f3f5-452c-9941-e14fc227704e/