help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot octave graph by running .m file problem


From: Doug Stewart
Subject: Re: plot octave graph by running .m file problem
Date: Tue, 13 Oct 2015 14:19:43 -0400



On Tue, Oct 13, 2015 at 1:51 PM, Manpreet Dhiman <address@hidden> wrote:
Hello

I am facing a another problem during plotting of graph. I have searched for
plotting, But my simple code plot graph. But I want to create graph for
below code. It did not plot any single point on graph. Guide me

function k=value(doverA,aoverA)
   up=(1-(aoverA)^2-(2*aoverA*doverA)-(doverA)^2);
   down=(aoverA*doverA+(doverA)^2);
   k=up/down;
end

%value(0.03,0.5)
for aoverA=0.05:0.05:0.3
   for doverA = 0.03:0.01:0.3
       k=value(doverA,aoverA)
       plot(doverA,aoverA, 'r-')
   endfor
endfor

title('Curve Plotting');
xlabel('a/A');
ylablel('d/A');


ylablel should be ylabel




 

plot([0; aoverA(:,1)], [0; doverA], '-ro');
hold on



--
View this message in context: http://octave.1599824.n4.nabble.com/plot-octave-graph-by-running-m-file-problem-tp4672891p4672898.html
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]