Initial Publication Date: September 26, 2024
Practice with Live Scripts, MATLAB Online, and GenAI
1) Go to Live Script Gallery
- Select a script to run (example:Heat Transfer in a Pipe or Calculate Heart Rate from Electrocardiogram Data)
- Click "Run in MATLAB Online" to run the script in MATLAB
- Once in the live script, click the "Output on right" icon on the far-right panel
- In the right-hand output panel, click right on your mouse and select "Clear all output"
- Use the "Run and Advance" menu item in the top menu bar to run each section serially.
- Experiment with changing UI parameters or editing the live script.
- Run, again. Did the output change?
2) Working with curriculum and Live Scripts in MATLAB Online
(If you did Option 1, below, at the 2023 workshop, jump down to Option 2)
Option 1: Select aTeaching Resource (below), scroll down the page, and click
- Fundamentals-of-Programming
- Numerical Methods with Applications
- Thermodynamics
- Run the live script following similar steps as in Exercise # 1, above.
- When you're satisfied with your Live Script, Export the script as a PDF. (Hint: Save menu)
- Save it in your MATLAB Drive with a file name of your choosing. (Hint: include the ".pdf" extension)
- Find the file you saved in your MATLAB Drive. (Hint: Open it from the MATLAB Online Files browser.)
Option 2: Experiment with the Climate curriculum
- Climate Data Visualization and Analysis
- Open it in MATLAB Online (using the button)
- Select one of the 4 live scripts. Open it and then run and/or modify it using similar steps as in Exercise # 1 (above).
- When you're satisfied with your live script, Export the script as a PDF (Hint: Save menu)
- Save it in your MATLAB Drive with a file name of your choosing (hint: include the ".pdf" extension)
- Find the file you saved in your MATLAB Drive. (Hint: Open it from the MATLAB Online "Files" browser.)
- Consider how you could use similar historical data and policy-related content in your courses.
3) Bonus Section
If you have extra time, look for tools to support your teaching.
- Videos
- Watch this video: how-to-create-a-script-using-the-live-editor-in-matlab
- View the MATLAB channel on YouTube:
- Search for videos on topics you need for your new curriculum, either in Google or YouTube.
- Teaching Activities
- View the collection of teaching activities created by 2024 workshop participants
Teaching Activities from 2024 MATLAB Workshop
View the full collection from all workshops.
Hydrology Example: Modeling Mono Lake's Water Balance
View the data and Live Script published with the the teaching activity.
- GenAI with MATLAB and ChatGPT
If you don't yet have a ChatGPT account, create one for using MATLAB GPT.
https://chatgpt.com/g/g-QFTjbeK3U-matlab
Experiment with prompts. Assess the answers. Can you improve with more info to MATLAB GPT?
Warning: There may be a delay in creating the account that will prevent you from starting today. This is often due to heavy loads on the OpenAI ChatGPT system.