MATLAB: How to plot a graph from the results of for loop

for loopgraph

I want to plot a graph using X axis as p values and y axis as A values there is an error in the code…
any suggestions
clc;
close all;
clear all;
for p=[1.0 0.3 0.1 0.03 0.01 0.003 0.001];
p1=1;
f=30;
h=0.136;
t=65.5;
l=09;
lo=78;
R=224;
Reo=8500;
A = a2(p,p1,f,h,t,l,lo,R,Reo); %calling function from other matlab file
disp(p);
disp(A);
%plot (p,A);
end

Best Answer

plot (p,A,'o');
hold on