Skip to main content
1-Visitor
Oct 15, 2014 8:03 PM UTC
Solved

Graphing if statements

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,

1-Visitor
Oct 15, 2014 8:12 PM UTC

Is this what you expected?

5 replies

1-Visitor
Oct 15, 2014 8:12 PM UTC

Is this what you expected?

Translate
kcotton1-VisitorAuthor
1-Visitor
Oct 16, 2014 12:57 AM UTC

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.

Translate
Werner_E
25-Diamond I
Oct 16, 2014 1:58 AM UTC

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

Translate
Werner_E
25-Diamond I
Oct 15, 2014 8:16 PM UTC

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.

Translate