View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Stacked Plot

5.0 | 2 ratings Rate this file 39 Downloads (last 30 days) File Size: 136 KB File ID: #24368 Version: 1.3
image thumbnail

Stacked Plot



08 Jun 2009 (Updated )

Stacked plots display spectra with time or another parameter. Five methods are provided.

| Watch this File

File Information

Stacked plots are commonly seen in NMR spectroscopy. They often illustrate the evolution of spectra with time or some other parameter. There are several (somewhat equivalent) methods to produce such plots in Matlab. This function serves as a common interface to these various methods. Certainly some methods may be evoked directly, e.g. mesh, but some others are not as obvious, e.g. plot3. In addition a method (style 1) has been added that produces the traditional stacked plot format. This fucntion can be found inside the program as "splot".

The purpose of this program is to educate through sample code and to provide a unified interface to these various styles. Select the method you like best.

There did not seem to be available such a program in the file exchange and it took some experimentation and time to explore different Matlab commands. As a result it seemed beneficial to have a common interface to these commands. Please leave or send me comments as improvements are hastened by user feedback.

MATLAB release MATLAB 7.10 (R2010a)
Other requirements None
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
14 Oct 2016 GAURAV

GAURAV (view profile)

Let me know the way to build the z matrix for NMR array data.

Comment only
30 May 2014 Jacob Mohin

Great code. I'm having trouble getting my plot to have the correct x-axis (the "spectroscopic" axis by your documentation). Can you provide a bit more info about the proper way to build the z matrix?

08 Nov 2011 Choi

Choi (view profile)


11 Jun 2009 1.1

changed title in help file.

25 May 2012 1.3

One bug pertaining to sytle selection has been fixed, errors in documetation, and axis labels can now be orientated in the reverse direction.

Contact us