Showing posts with label scripting. Show all posts
Showing posts with label scripting. Show all posts

Saturday, February 4, 2023

MATLAB Tip Calculator on Your Phone

In this video I show how to take your MATLAB code and run it on your iPhone. 

Here's a list of instructions you can use while watching the video.

In MATLAB on Your Computer

  • Create a MATLAB script or function.
  • Document your code by adding explanatory comments at the beginning of the file and within each section.
  • Publish the code. On the Publish tab, click Publish.
    • By default, MATLAB creates a subfolder named html, which contains an HTML file and files for each graphic that your code creates. The HTML file includes the code, formatted comments, and output. Alternatively, you can publish to other formats, such as PDF files or Microsoft PowerPoint® presentations. For more information on publishing to other formats, see Specify Output File.
    • In MATLAB Online™, to allow MATLAB to open output windows automatically when publishing, enable pop-up windows in your Web browser.

  • After publishing the code, you must share the folder containing the published files. For more information, see Share Folders in MATLAB.

  • To save to the MATLAB Drive, in MATLAB select Publish -> Save -> Save As -> navigate to MATLAB-Drive and save tipcalculator.m there.
On Your Phone
  • Install the MATLAB app on your phone, login to your account and access the script saved in to cloud. You must have internet access to access.
  • Impress your family and friends with your tip knowledge, skills and abilities!
And if you want to also impress them a little more, here's how to mirror your iPhone screen on a Mac.
  1. Connect your iPhone to your Mac with a USB cable.
  2. Open the QuickTime Player on your Mac.
  3. Click “File”, and choose “New Movie Recording”.
  4. Click the Options pop-up menu, then Choose Your Connected iPhone. ...
  5. The iPhone screen will now instantly display on the Mac.

Thursday, July 14, 2022

MATLAB Tip Calculator Fix-Up

This summer I'm building a series of MathWorks MATLAB (short for Matrix Laboratory) videos for an introductory online course I'm putting together at Holyoke Community College.

 

In this video I fix-up a previously saved tip calculator script in MATLAB. In the next video I'll show you how to transfer the script to your cell phone so you can use it when you eat out!



The course will start from ground zero assuming the student has no experience with MATLAB and work up to some interesting and powerful analysis techniques. Over the summer I’ll be posting additional MATLAB videos as teasers for the complete course.

 

Want to learn more? Come take a course with me at Holyoke Community College. If you are anywhere in the world and interested in taking an online course, drop an email to gsnyder@hcc.edu Our courses will transfer to most university engineering programs in the United States. 

Thursday, June 16, 2022

Write, Save and Run A Tip Calculator Using MATLAB Scripting

This summer I'm building a series of MathWorks MATLAB (short for Matrix Laboratory) videos for an introductory online course I'm putting together at Holyoke Community College.

In this video I demonstrate how to write, save and run a tip calculator script in MATLAB. In the next video I'll show you how to transfer the script to your cell phone so you can use it when you eat out!

The course will start from ground zero assuming the student has no experience with MATLAB and work up to some interesting and powerful analysis techniques. Over the summer I’ll be posting additional MATLAB videos as teasers for the complete course.

 

Want to learn more? Come take a course with me at Holyoke Community College. If you are anywhere in the world and interested in taking an online course, drop an email to gsnyder@hcc.edu Our courses will transfer to most university engineering programs in the United States.