[Top][All Lists]

[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: Wed, 14 Oct 2015 07:43:29 -0400

On Wed, Oct 14, 2015 at 1:04 AM, Manpreet Dhiman <address@hidden> wrote:
Thank you , Allen

Actually I have written wrong values in the range of for loop. Now my graph
is plotted. But not exactly that I want. I am new for Octave and I have
plotted  very simple graph. That way I am facing problem. Now I  modify the
code as you suggest. see:

function k=value(doverA,aoverA)

for aoverA=0:5:100
   for doverA = 0:0.05:0.30
       k=value(doverA,aoverA) %calling of function
       plot([0; aoverA(:,1)], [0;doverA],'-ro')
      hold on

title('Curve Plotting');

This code plotting below graph

But I want this graph . It means that it will take values from


Guide me. I need your advice.

You are calculating k
but  the graph shows k as an independent variable.

What is k ????

reply via email to

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