I understand that you want to identify which principal components are influenced by which variables and by what values. Also, you wish to plot those on a bar plot for easier visualization.  
I would like to clarify one thing; no principal component is affected by only a single variable but influenced by all the variables. We can see which variable is influencing the most using “explained” or “latent” results returned by the “pca” function in MATLAB.   
Where “latent” provides the raw eigenvalues, which are useful for understanding the absolute variance captured by each component. 
“Explained" is derived from “latent” and it represents the percentage of the total variance in the data that is captured by the corresponding principal component.  
To get the desired results you can follow the given steps: 
[coeff, score, latent, tsquared, explained] = pca(data); 
- Display variance explained by each component
disp('Variance Explained by Each Component:'); 
explained_column = explained+"%";  
explained_table = array2table(explained_column, 'VariableNames', {'Variance_Explained'}, 'RowNames', strcat('PC', string(1:length(explained_column)))); 
- Combined bar chart for variable influence on all components
xlabel('Principal Components'); 
ylabel('Coefficient Value'); 
title('Variable Influence on Principal Components'); 
xticklabels(strcat('PC', string(1:size(coeff, 1)))); 
legend(variable_names, 'Location', 'Best'); 
A. The given result shows us the variance of each principal component.
B.  This bar plot gives us an idea about how each variable is influencing each principal component. 
For more clarification on the functions used, you can refer to the following resources, 
Or you can access release specific documentation using this command in your MATLAB command window: 
web(fullfile(docroot, 'stats/pca.html')) 
Hope this helps you!!