![]() You can toggle to inline mode (also shown below) via the output buttons located in the upper right window.Īt the end of the script, you are presented with instructions for saving the results back to HydroShare. Variables values can also be displayed in the Command Window.īy default, figures appear to the right of the Live Script code, as shown below. ![]() ![]() Explore the contents of these variables by double clicking the name. As you step through each section of the code, variables appear in the Workspace panel, as shown below. You can also add breakpoints and step through the code line-by-line just like in MATLAB Desktop. Step through each section of the MATLAB Live Script by clicking the “Run and Advance” button on the ribbon toolbar. Next, double-click on rainfall_interpolation.mlx to open the Live Script. Double-click on the folder named “Interpolating-GHCN-Timeseries…” in the Directory panel. The standard view of the MATLAB Online environment consists of a directory panel for navigating directories and opening files, an editor panel for interacting with code, a workspace panel for inspecting variables, and a command panel for running MATLAB commands. The files from the HydroShare resource where you opened MATLAB Online will be automatically downloaded into your workspace. After agreeing to the terms of use, an isolated computational environment is created for you. This will take you to the MATLAB Online landing page. To run this example, select ”MATLAB Online” from the “Open With” menu in the top right of the resource landing page (shown below). The *.mlx (MATLAB Live Script) is an interactive notebook that performs the interpolation. The *.dat files contain precipitation and site data for Global Historical Climatology Network sensors in and around Seattle, WA. This HydroShare resource includes three files: ghcn-precip.dat, ghcn-sites.dat, and rainfall_interopolation.mlx. First, log into HydroShare and navigate to this resource, a simple rainfall interpolation Live Script example. This section uses prepared data and code stored on HydroShare to demonstrate the MATLAB Online environment. The web application enables interactive data exploration and visualization with MATLAB using the HydroShare “Open With” functionality. CUAHSI hosts an instance of MATLAB Online for access by HydroShare users to facilitate collaboration and allow for publication of MATLAB based repositories. MATLAB is a popular tool for water science, which can be accessed through the MATLAB Online web application to execute code, live scripts, and work with other MATLAB files directly from a web browser. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |