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.

🌵MATLAB snippet

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:

Steps to Plot an Excitation Spectrum in MATLAB:

  1. Collect Data: Gather experimental data or simulate data where you have excitation wavelengths and corresponding fluorescence intensities.
  2. Load Data into MATLAB: You can manually input data or import it from a file (e.g., .csv or .txt).
  3. Plot the Data: Use MATLAB's plotting functions to create the excitation spectrum.

Sample MATLAB Code:

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)]);

Explanation:

Loading Data from a File:

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;

Customizing the Plot: