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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Placing Functions into a Matrix

jjones-3
1-Newbie

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

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!

Top Tags