Help!
I'm trying to use spectrumLabel for a calculated absorption spectrum.
It works fine from the command window, but I'm not able to put the color axis in a plot which is rendered to a GUI.
Here is the piece of code that I put in the .m file. The plot of the extinction, scattering and absorption spectra are sent to the axes style GUI handles.axes1:
----------------------------
axes(handles.axes1);
plot(wave,qext,wave,qsca,wave,qabs);
title('Spectrum');
xlabel('Wavelength (nm)');
ylabel('Arbitrary units');
spectrumLabel(handles.axes1);
-------------------------------
Apparently, the spectrumLabel is put at the right position but with zero or very small vertical dimension.
Thank you!
5
01 Jan 2012
Spectral and XYZ Color Functions
Label plots with spectra. Convert wavelengths to RGB. Functions for color matching and illuminants.
I got this error information:
"the selected cell cannot be evaluated because it contains an invalid statement".
"??? Input argument "formulary" is undefined."
Any idea why this happen? Thank you!