cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Placing Functions into a Matrix

jjones-3
1-Visitor

Placing Functions into a Matrix

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...

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:jjones-3)

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

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:jjones-3)

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

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

Announcements

Top Tags