Matlab add-on

13 visualizzazioni (ultimi 30 giorni)
Joseph Madrigal
Joseph Madrigal il 27 Nov 2020
Commentato: Joseph Madrigal il 29 Nov 2020
I am currently using the onling version of Matlab which was linked to my college licence number. I am trying to run a thermodynamic but I am having trouble with running the XSteam.m function(functions>XSteam.m)provided by matlab; specfically running one of the functions.
  1. What are the 'add-on's' that matlab is referring to?
  2. Does Matlab online have some sort of limit to running the functions?
  3. Can the 'add-on' be added to the online version?
  4. Which add-on can be added to the online version on page...https://www.mathworks.com/store/link/products/student/new?
  5. Doe anybody else have an issue with running the XSteam.m code only in the Matlab ONLINE?
I attached a pdf. copy of all the coding incase anyone would like to try to run the file, I also attached images of the error message I recieved.

Risposte (1)

Walter Roberson
Walter Roberson il 27 Nov 2020
The line that shows up in your image as line 3552 is really in line 3550 of XSteam.m . You are using a corrupted version of the file -- one in which at least one function statement has had a matching end statement added to it, so MATLAB thinks that it is dealing with nested functions instead of unnested functions.
In the online version, http://matlab.mathworks.com click on HOME in the upper left corner in order to show the Home toolbar. Move about 2/3 of the way to the right on that toolbar and click on Add-Ons and select Get Add-Ons from there. The Add-On Explorer will show up. Ask it to search for xsteam thermodynamic . A small number of search results will show up. Click on the title bar for X Steam, Thermodynamic properties of water and steam. by Magnus Holmgren . The page specific to that will show up. In the upper right for that page, click to install it, and agree to the license terms. The software will install and will be added to your MATLAB path. In particular, the file will be installed to the directory /MATLAB Add-Ons/Collections/X Steam, Thermodynamic properties of water and steam. ... complete with spaces and period.
If you had somehow copied XSteam to MATLAB Online yourself, then I recommend deleting the copy you uploaded.
  12 Commenti
Walter Roberson
Walter Roberson il 29 Nov 2020
I had a look at the XSteam code. It would be a lot of rewriting to vectorize it by any way other than internal use of arrayfun.
Joseph Madrigal
Joseph Madrigal il 29 Nov 2020
I am asking to fetch values for corresponding pairs of inputs. And yea, thats what it was looking like at this point honestly!

Accedi per commentare.

Categorie

Scopri di più su Oil, Gas & Petrochemical in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by