Excitation Spectrum shows the range of wavelengths that can excite a fluorophore and induce fluorescence. Each fluorophore has a unique excitation spectrum that depends on its molecular structure.
To create or analyze an excitation spectrum using MATLAB, you need to plot the intensity of fluorescence as a function of excitation wavelength. Below is an outline of how to generate such a spectrum in MATLAB:
.csv
or .txt
).Here's a basic script to plot an excitation spectrum from data.
% Sample data for demonstration (replace with actual data)
excitation_wavelengths = 300:10:700; % Example wavelengths (in nm)
fluorescence_intensities = rand(1, length(excitation_wavelengths)) * 100; % Replace with your data
% Plot the excitation spectrum
figure;
plot(excitation_wavelengths, fluorescence_intensities, '-o', 'LineWidth', 1.5);
title('Excitation Spectrum');
xlabel('Excitation Wavelength (nm)');
ylabel('Fluorescence Intensity (a.u.)');
grid on;
xlim([min(excitation_wavelengths), max(excitation_wavelengths)]);
excitation_wavelengths
: Replace this vector with your actual excitation wavelengths.fluorescence_intensities
: Replace with the fluorescence intensity data for each wavelength.plot
function is used to create a line plot, with optional markers for clarity.LineWidth
and markers as needed for better visualization.If you have data in a file, such as a CSV:
% Load data from a CSV file (assumes two columns: wavelengths and intensities)
data = csvread('excitation_data.csv', 1, 0); % Skip the first row if it has headers
excitation_wavelengths = data(:, 1); % First column: wavelengths
fluorescence_intensities = data(:, 2); % Second column: intensities
% Plot the data
plot(excitation_wavelengths, fluorescence_intensities, '-o', 'LineWidth', 1.5);
title('Excitation Spectrum');
xlabel('Excitation Wavelength (nm)');
ylabel('Fluorescence Intensity (a.u.)');
grid on;
title
, xlabel
, ylabel
: Add labels and a title to provide context.