Skip to main content
1-Visitor
October 15, 2014
Solved

Graphing if statements

  • October 15, 2014
  • 2 replies
  • 1954 views

Hello,

Another problem I'm having is with graphing if statements. I tried the milti-line one a I wouldn't graph and I couldn't get the single line if(test,true,false) to work. I have tried both with and with out units. The if statement doesn't like the variable with a range. I tried to do vectro selection, the [ , but that didn't work either. I'm sorry if this is a stupid question with an easy solution, I think it is.

Thanks,

Best answer by MikeArmstrong

Is this what you expected?

2 replies

1-Visitor
October 15, 2014

Is this what you expected?

kcotton1-VisitorAuthor
1-Visitor
October 16, 2014

Thanks, I knew it was something simple like that. It is close but if I don't use units I need to convert C to K which is why the graph looks weird.

25-Diamond I
October 16, 2014

Kendall Cotton wrote:

Thanks, I knew it was something simple like that. It is close but if I don't use units I need to convert C to K which is why the graph looks weird.

??

Maybe a log-log scale would be more appropriate?

1.png

25-Diamond I
October 15, 2014

When defining the two functions you want to plot you have to type T.emp for the argument - you forgot to subscript the "emp".

Another way to fix it is to remove all those subscripts from the right side of the definition.