{"id":11154,"date":"2025-07-29T16:01:04","date_gmt":"2025-07-29T20:01:04","guid":{"rendered":"https:\/\/labs.icahn.mssm.edu\/minervalab\/?page_id=11154"},"modified":"2025-09-10T12:48:51","modified_gmt":"2025-09-10T16:48:51","slug":"matlab","status":"publish","type":"page","link":"https:\/\/labs.icahn.mssm.edu\/minervalab\/documentation\/matlab\/","title":{"rendered":"MATLAB"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; fullwidth=&#8221;on&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_fullwidth_menu menu_id=&#8221;15&#8243; menu_style=&#8221;centered&#8221; fullwidth_menu=&#8221;on&#8221; active_link_color=&#8221;#d80b8c&#8221; dropdown_menu_line_color=&#8221;#221f72&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; menu_font=&#8221;|600|||||||&#8221; menu_text_color=&#8221;#FFFFFF&#8221; menu_font_size=&#8221;16px&#8221; background_color=&#8221;#221f72&#8243; background_layout=&#8221;dark&#8221; sticky_position=&#8221;top&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_fullwidth_menu][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_padding=&#8221;||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Breadcrumb&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><a href=\"https:\/\/labs.icahn.mssm.edu\/minervalab\/scientific-computing-and-data\/\">Scientific Computing and Data<\/a> \/ <a href=\"https:\/\/labs.icahn.mssm.edu\/minervalab\/\">High Performance Computing<\/a> \/ <a title=\"Documentation\" href=\"https:\/\/labs.icahn.mssm.edu\/minervalab\/documentation\/\">Documentation<\/a> \/ MATLAB<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; header_font=&#8221;|600|||||||&#8221; header_text_color=&#8221;#221f72&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h1>MATLAB<\/h1>\n<p>The MATLAB client from Mathworks is available on Minerva. The latest version is R2023b.<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #221f72\">Accessing the MATLAB and SIMULINK (graphical programming environment) client on Minerva<\/span><\/h2>\n<p>Users can use the MATLAB client on Minerva as part of the\u00a0<a href=\"http:\/\/library.mssm.edu\/computing\/mathworks.shtml\">MATLAB Total Academic Headcount license<\/a>\u00a0administered by Academic IT. Users are required to purchase an activation for Minerva just as they must for a local desktop copy. This is done by filling out the Mathworks Software Distribution Form found\u00a0<a href=\"https:\/\/mountsinai.formstack.com\/forms\/mathworksacademiclicense\">here<\/a>\u00a0and checking the &#8220;Minerva&#8221; box. Once the Scientific Computing staff is notified by Academic IT, the user will be given permission to use MATLAB on Minerva.<\/p>\n<p>The license for Minerva is a <em>network floating license<\/em>, enabling concurrent execution of MATLAB on a single node on Minerva at any given time, while allowing seamless access across any node in the cluster. Multiple MATLAB instances can be run on the same node, mirroring the functionality of a local installation. Access to MATLAB on Minerva is managed through a module system, where users load the required environment modules to run the software, rather than downloading and installing a personal instance of MATLAB:<\/p>\n<blockquote>\n<p style=\"padding-left: 30px\"><code>module load matlab<\/code><br \/><code>matlab<\/code><\/p>\n<\/blockquote>\n<p>The MATLAB client can be run in either graphics mode or command line mode. <strong>If one wants to run in graphics mode, you must use X-forwarding when you log in:<\/strong><\/p>\n<blockquote>\n<p style=\"padding-left: 30px\"><code>ssh -X &lt;userid&gt;@minerva.hpc.mssm.edu<\/code><\/p>\n<\/blockquote>\n<p>Because one should never use the login node for computing, you will need to open a session via<span style=\"font-size: 14px\">\u00a0a batch interactive job on a compute node:<\/span><\/p>\n<blockquote>\n<p style=\"padding-left: 30px\"><code>bsub -q express <span data-teams=\"true\">-P acc_XXX <\/span>-Is -XF -W 2:00 \/bin\/bash<\/code><\/p>\n<\/blockquote>\n<p>The <code>-Ip<\/code> option will create an interactive job with a pseudo-terminal; the <code>-XF<\/code> will allow X-forwarding. The command above starts the interactive session with only one cpu. The Parallel Toolkit (PTK) of MATLAB allows the user to start up 12 additional workers for parallel work. If you plan on using the PTK, then you should also use the <code>-n<\/code> option to specify that additional cores need to be allocated to your job.<\/p>\n<blockquote>\n<p><code>bsub -q express <span data-teams=\"true\">-P acc_XXX <\/span>-n 4 <span data-teams=\"true\">-R span[hosts=1] <\/span>-Is -XF -W 2:00 \/bin\/bash<\/code><\/p>\n<\/blockquote>\n<p>or however many cpu&#8217;s you will be using.<\/p>\n<p>Additionally, Matlab can also be accessed via Open OnDemand (<a href=\"https:\/\/ondemand.hpc.mssm.edu\">https:\/\/ondemand.hpc.mssm.edu<\/a>).<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/scpublic.dmz.hpc.mssm.edu\/HPC\/matlab\/matlab_ondemand.png&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;30%&#8221; max_width=&#8221;30%&#8221; module_alignment=&#8221;center&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scientific Computing and Data \/ High Performance Computing \/ Documentation \/ MATLABMATLAB The MATLAB client from Mathworks is available on Minerva. The latest version is R2023b. &nbsp; Accessing the MATLAB and SIMULINK (graphical programming environment) client on Minerva Users can use the MATLAB client on Minerva as part of the\u00a0MATLAB Total Academic Headcount license\u00a0administered by [&hellip;]<\/p>\n","protected":false},"author":624,"featured_media":0,"parent":35,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-11154","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/pages\/11154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/users\/624"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/comments?post=11154"}],"version-history":[{"count":7,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/pages\/11154\/revisions"}],"predecessor-version":[{"id":11990,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/pages\/11154\/revisions\/11990"}],"up":[{"embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/pages\/35"}],"wp:attachment":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/media?parent=11154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}