On 10/4/2013 1:47 PM, Natalie wrote:
> When I try to plot the following, the plot just shows up blank. Any help
> is appreciated.
> for i=1:5
Hint: What does
return at command line?
And, the second hint what about
Clue--you need to accumulate the values into an array; you overwrite
them each pass as is.
2nd Clue/Hint -- You don't need a loop at all and in fact "the Matlab
way" wouldn't for such a purpose as above.
3rd Clue/Hint -- Even if you had made arrays for T and V, the plot()
command arguments as written aren't what you're looking for -- try those
expressions at the command line as well to see what they are.
"Natalie " <firstname.lastname@example.org> wrote in message <email@example.com>...
> When I try to plot the following, the plot just shows up blank. Any help is appreciated.
> for i=1:5
the loop just keep refreashing T and V, so when it ends, T and V only have the latest value in them.
Tags for this Thread
No tags are associated with this thread.
What are tags?
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.