Author |
Topic |
|
lcbuijs
Netherlands
1 Posts |
Posted - 08/05/2015 : 06:19:38 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): 9 Operating System: W7
Hi guys,
I'm trying to differentiate matrix values with respect to their x and y coordinates, separately. The matrix is symmetrical and I have it in both normal and XYZ format. How would you suggest I go about this? |
|
Hideo Fujii
USA
1582 Posts |
Posted - 08/05/2015 : 2:37:01 PM
|
Hi lcbuijs,
For example, please try the following procedure on the source matrix:
1) For the partial derivative on the matrix in the direction of y, (across columns), "Matrix: Convert to Worksheet", and set the options as follows: - Method = Direct - Data Format = X Across Columns - Y Values in First Column = ON - X Values in = System Parameters - Output Worksheet = [<new>]<new> ==> A new worksheet from the matrix values (= virtual matrix) is created.
2) Change the designation of the 1st column to X ("Column: Set As: X" menu)
3) Highlight the 2nd column (i.e., the 1st matrix data column), and choose "Analysis: Mathematics: Differentiate: Open Dialog", and set the options as follows: - Recalculate = Manual or Auto - Derivative Order = your choice - Output = [<input>,<new>] (means X=Input X, Y=New Column) ==> A derivative values for given X in the ast column is added in a new column
4) Left-click on the Green lock icon in the column header of the newly added column, and choose "Repeat this for All Y columns" flyout. ==> Derivative columns of the all other Y datasets are added.
5) Highlight all derivative Y columns (added at the right of the source Y columns), and copy to the clicpboard (CTRL-C). Then, go back to the original matrix, and left-click the YELLOW [>] button at top right corner. Choose "Add" flyout to add the 2nd matrix object, and paste the cilpboard into this new matrix.
6) For the partial derivative on the matrix in the direction of x, (across rows), Press the YELLOW [>] button again, and select "1" to activate the original source matrix. Do the step 1), but with the option, Data Format = Y Across Columns. Then repeat the steps from 2) to 5)
Note: To store the absolute values into the additional matrix object, you can run the following commands, e.g. range m2=[MBook1]1!2;
range m3=[MBook1]1!3;
range m4=[MBook1]1!4;
m4=sqrt(m2^2+m3^2); --Hideo Fujii OriginLab |
|
|
surjpanj
Canada
18 Posts |
Posted - 01/28/2016 : 11:31:17 AM
|
Hi Hideo!
Would it be possible to make LabTalk script for the procedure you described? Namely, I would like to automate differentiation for data that I have in more than 100 sheets.
Thanks, Matt |
|
|
|
Topic |
|
|
|