Skip to main content
1-Visitor
April 27, 2016
Solved

Placing Functions into a Matrix

  • April 27, 2016
  • 1 reply
  • 1400 views

This is a process controls question.

I am having an issue with creating a program that will place various values into a function while maintaining a variable in the function.

Screenshot of what I have written:

Screenshot (31).png

As you can see, it is only doing the first value for Kc here. I need to be able to call the individual elements of the matrix to graph them. I did a long hand version of this that has the graph attached below to kind of give an idea of what I am after.

Screenshot (32).png

Of course, I am taking an inverse laplace after the fact as well. Should that also be included into the code or will it be easier to do that after the fact?

Any help here would be appreciated, I am not sure what I am missing here...

Best answer by Werner_E

There is no need to precalculate all 101 functions.

BTW, if you use a for loop, you do not need to initialize "i" and you should not increment "i" yourself.

Maybe the following is of help:

Werner

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 27, 2016

There is no need to precalculate all 101 functions.

BTW, if you use a for loop, you do not need to initialize "i" and you should not increment "i" yourself.

Maybe the following is of help:

Werner

jjones-31-VisitorAuthor
1-Visitor
April 27, 2016

Thanks! That should definitely be sufficient, and much better than what I was doing beforehand!