MATLAB Central Discussions - Join the conversation!
주요 콘텐츠

다음에 대한 결과:


I am inspired by the latest video from YouTube science content creator Veritasium on his distinct yet thorough explanation on how rainbows work. In his video, he set up a glass sphere experiment representing how light rays would travel inside a raindrop that ultimately forms the rainbow. I highly recommend checking it out.
In the meantime, I created an interactive MATLAB App in MATLAB Online using App Designer to visualize the light paths going through a spherical raindrop with numerical calculations along the way. While I've seen many diagrams out there showing the light paths, I haven't found any doing calculations in each step. Hence I created an app in MATLAB to show the calculations along with the visualizations as one varies the position of the incoming light ray.
Demo video:
For more information about the app and how to open it and play around with it in MATLAB Online, please check out my blog article:

An earlier tip suggested using MATLAB Drive to share and collaborate with others using MATLAB Online or MATLAB on desktop systems. Starting in MATLAB R2021a, there is yet another advantage of using this approach – the 'matlabdrive' function returns the path to the folder that contains the content of your MATLAB Drive.

After sharing their files, instructors sometimes direct students to navigate to a specified folder or add certain folders to the MATLAB search path. This ensures that MATLAB can discover the scripts, functions, and other files contained within. Since the MATLAB Drive folder may be installed in different locations on each users’ computer, this could not be done programmatically. Unfortunately, students may miss these instructions and encounter errors. The same can happen between peers working in groups.

Add the matlabdrive function in your code to obtain the path of the MATLAB Drive folder. You can then use functions cd and fullfile to navigate directly to that location or a subfolder. With addpath, you can also add these to the MATLAB search path. For example,

>> drivePath = matlabdrive 
drivePath = 'C:\Users\username\MATLAB Drive' 
>> folderPath = fullfile(matlabdrive, ‘myfolder’) 
folderPath = 'C:\Users\username\MATLAB Drive\myfolder’ 
>> cd(folderPath)	% Change current folder to ‘myfolder’ in MATLAB Drive 

You can run matlabdrive from your desktop or from other MATLAB environments such as MATLAB Online. On desktop systems, you must have MATLAB Drive Connector installed. If MATLAB is unable to find the MATLAB Drive folder, matlabdrive returns an error.

Improving accessibility in higher education – whether on-campus or virtual – is important to ensure the learning experience accommodates all. MathWorks is committed to improving the accessibility of its software products for users with disabilities.

In MATLAB Online, you can use a screen reader to interact with the Command Window, create and edit scripts and functions in the Editor, and navigate through the MATLAB desktop tools. For more information, refer to the documentation page Use a Screen Reader in MATLAB Online .

You can learn more and sign up for usability research to improve the accessibility of MATLAB Online in the Accessibility Statement for MATLAB page.

MATLAB Drive provides a common cloud-based storage location for your scripts, live scripts, and other MATLAB files. All files you place in your MATLAB Drive get backed up in the cloud. You can use it to send either a personal invitation or a view-only link to a shared folder. Its close integration with MATLAB and MATLAB Online make it the easiest way to share and collaborate with other MATLAB users.

For example, instructors can share a read-only folder of class material with their students. Students can collaborate with peers on a common shared folder for group projects, and subsequently share it with their instructor for assessment. Thanks to full integration with MATLAB Online, you can view, modify, and run such shared files from within a web browser with just a few clicks.

Use MATLAB Drive Connector to sync your files between your computers and MATLAB Online, eliminating the need for manual upload or download.

With MATLAB Online, your students do not need a high-end computer to install and use MATLAB. Instead, they just need a web-connected computer. MATLAB Online lets students connect their webcam to capture live videos and images. Here’s an example of performing a simple object detection using a pretrained neural network called AlexNet and a live feed from a webcam. Google Chrome™ is required for webcam support.

Read more about it in the documentation, or take a look at this video for additional examples.

How do you teach subjects like Programming and Numerical Computing hands-on in these challenging times?

Prof Chiranjoy Chattopadhyay at the Dept of Computer Science and Engineering at IIT Jodhpur shares his innovative approach to teaching at a distance in this new Technical Article on Teaching Parallel Computing Online with MATLAB.

The course utilized MATLAB Online , MATLAB Onramp and MATLAB Grader to train students in the basics of technical computing, in addition to using a Hands-on Online GPU workshop organised with the MathWorks Education Team. As a result of this approach to distance teaching, the students have reported good levels of understanding in the main learning outcomes of this course, as indicated in the survey results (below):

Please consider trying out the links above to check if your course might benefit from a similar approach, and feel free to message us if you are interested in learning more.

As an environment for modeling, simulating, and testing dynamic systems, Simulink is used for:

Simulink is now available in a web browser as Simulink Online.

Simulink Online is available to anyone with access to MATLAB Online (see supported license types here) and a Simulink license.

Just sign into MATLAB Online and either start Simulink or open a Simulink model.

Learn more about Simulink Online at the product page on our website.

Simulink Online currently supports the following toolboxes, with more to be added in the future!

  • Simulink
  • Stateflow
  • Simscape
  • Simscape Electrical
  • Simscape Multibody
  • Simulink Control Design
  • DSP System Toolbox

MATLAB Online lets students run MATLAB without having to install the software on the computer. All you need is a web browser and an internet connection.

I would love to hear comments and experiences of using MATLAB Online.

Go to top of page