I understand that you want to plot 1D eigen vector,
Yes, you can plot a 1D eigenvector in MATLAB. Since the eigenvector is 1D, you can simply use the “plot” function to visualize it. Here are two examples you may refer to,
EXAMPLE 1:
% Generate a 1D eigenvector
eigenvector = [1; 2; 3; 4; 5];
% Plot the eigenvector
plot(eigenvector,'*-')
EXAMPLE 2:
% Example 1D eigenvector
eigenvector = [0.2, 0.5, 0.8, 0.9, 1.0, 0.9, 0.8, 0.5, 0.2];
% Create x-axis values
x = 1:length(eigenvector);
% Plot eigenvector as a line plot
plot(x, eigenvector, 'o-'); % 'o-' for markers and lines
xlabel('Index');
ylabel('Eigenvector Value');
title('1D Eigenvector Plot');
grid on;
In the first example, the eigenvector is plotted directly, where the index of each element is automatically used for the x-axis with markers (‘*’) connected by lines (‘-’).
In the second example, we explicitly create x-axis values using the “length” function and plot the eigenvector as a line plot, with markers ('o') connected by lines ('-').
You can also refer to the following documentation links for more information,
Hope this helps!