You probably want to replace the "from workspace" blocks with "constant" blocks.
You probably want to replace the "from workspace" blocks with "constant" blocks. Constant blocks allow you to set the value to anything that could be evaluated at the command prompt. This includes vanilla numbers (1, 6, 100, 1e6), arrays (1:3, 1:2:11, zeros(23,1), ones(10,4)*6), and workspace variables (simin1, simin2)."From workspace" blocks, on the other hand, read one element per execution from the variable.
It looks like you want all of the points to be passed into the interp function every execution. (Another way of wording this: The "Pts" input to the interp block is a constant, the "in" port (time) is the only input that changes each execution.).
Thnx for response. So, I've got only first element of simin1 variable during running model? – Mighter Mar 26 '11 at 21:02 If you use "from workspace" blocks you will have the first element for the first execution, the second element for the second execution, and so on.
This is what the "from workspace" block does. From your usage, it appears to me that you want the entire table being input into the interp block. You can't use "from workspace" if you want the entire table every execution.
You should be using the "constant" block instead. If you are having trouble understanding, try connecting a "display" block to both a "constant" block and a "from workspace" block. I think you will see the problem then.
– MajorApus Mar 28 '11 at 5:26 When I run model I always get one weird number in display, which shows simin1, this number isn't even in my dataset. – Mighter Mar 28 '11 at 18:57.
I would use the "Lookup Table Dynamic" block in the Simulink > Lookup tables library instead of the interp block and separate the xdat (time t column) and ydat (values) each in a separate variable/constant.
It sounds like you want to interpolate each of your three tabulated functions at a new set of time values, then compute a running sum for each of these functions (since you mention needing "function values summed over time"). I believe you will need two different types of blocks to accomplish this: A Lookup Table block will allow you to interpolate the values of your functions at different time points. This will replace the "Interp" block shown in your model above.
There are a few different options here depending on how you want to initialize your table data in the model: If you have a set of data that will stay the same throughout your simulation, you can just hardcode this data into the Table data property of a block. In this case, you could use a Lookup Table block, a more general Lookup Table (n-D) block, or an Interpolation Using Prelookup block (in combination with a Prelookup block). If you want to load your table data from the workspace during the simulation, you could use a Lookup Table Dynamic block or an Interpolation Using Prelookup block with its Source property set to use an input port.In this case you would have to load your data using a From Workspace block (as you do above) and then make sure you format the table data properly for the interpolation block to use.
A Cumulative Sum block will allow you to keep a running total of the values your functions create over time. If you want to look at the running total for each function individually, you will have to add one cumulative sum block to the output of each interpolation block, then send each of these to your scope. If you want to look at the running total for all the functions added together, then you can use a Sum block as you do above to add your three signals, then add a cumulative sum block to that output before sending it to your scope.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.