<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bionmr.unl.edu/mediawiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Using_MVAPACK</id>
	<title>Using MVAPACK - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bionmr.unl.edu/mediawiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Using_MVAPACK"/>
	<link rel="alternate" type="text/html" href="https://bionmr.unl.edu/mediawiki/mediawiki/index.php?title=Using_MVAPACK&amp;action=history"/>
	<updated>2026-05-02T11:48:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://bionmr.unl.edu/mediawiki/mediawiki/index.php?title=Using_MVAPACK&amp;diff=1208&amp;oldid=prev</id>
		<title>Mjeppesen: Created page with &quot;category:MVAPACK  =General Notes=  MVAPACK operates in Octave - therefore it uses native octave/MATLAB syntax.  A typical script would encase multiple lines of code.  Here...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bionmr.unl.edu/mediawiki/mediawiki/index.php?title=Using_MVAPACK&amp;diff=1208&amp;oldid=prev"/>
		<updated>2022-01-18T22:54:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/mediawiki/index.php/Category:MVAPACK&quot; title=&quot;Category:MVAPACK&quot;&gt;category:MVAPACK&lt;/a&gt;  =General Notes=  MVAPACK operates in Octave - therefore it uses native octave/MATLAB syntax.  A typical script would encase multiple lines of code.  Here...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:MVAPACK]]&lt;br /&gt;
&lt;br /&gt;
=General Notes=&lt;br /&gt;
&lt;br /&gt;
MVAPACK operates in Octave - therefore it uses native octave/MATLAB syntax.&lt;br /&gt;
&lt;br /&gt;
A typical script would encase multiple lines of code.&lt;br /&gt;
&lt;br /&gt;
Here are a few lines you could execute to ensure MVAPACK is installed correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$octave&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 1:&amp;gt;pkg list&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt; -&amp;gt;This will display all current octave packages. MVAPACK should be listed and the version should match the version listed in the manual.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 2:&amp;gt;x = [1:100];&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 3:&amp;gt;y = sin(x);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 4:&amp;gt;plot(x,y);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
-&amp;gt;This will display a sin wave plot. If this is plotted in the terminal you need to check your X11 forwarding. This should plot to a new window.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Sample MVAPACK Script=&lt;br /&gt;
Once you are in an appropriate octave environment as proven above. The following can be executed to load in data from a file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;octave 1:&amp;gt;F.dirs = glob(&amp;#039;/location/of/your/data&amp;#039;);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;Note: This function will take everything from this file location. Make sure there is only data there.&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 2:&amp;gt;[F.data, F.parms, F.t] = loadnmr(F.dirs);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 3:&amp;gt;F.data = zerofill(F.data, F.parms);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 4:&amp;gt;[S.data, S.ppm] = nmrft(F.data, F.parms);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 5:&amp;gt;[S.data, S.phc0, S.phc1] = autophase(S.data, F.parms);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 6:&amp;gt;X.data = realnmr(S.data, F.parms);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 7:&amp;gt;X.ppm = S.ppm;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 8:&amp;gt;pcaMdl = pca(X.data);&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;octave 9:&amp;gt;rqplot(pcaMdl);&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example guides you through a simplified path to examine NMR data. This is not a suggested script for regular use, but rather an example to try and see how data is handled in the MVAPACK software package.&lt;br /&gt;
&lt;br /&gt;
A complete script can be accessed through MVAPACK online for specific purpose or [[MVAPACK_Master_Script |Here.]]&lt;/div&gt;</summary>
		<author><name>Mjeppesen</name></author>
	</entry>
</feed>