The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Matrix differentiation

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
lcbuijs 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?
2   L A T E S T    R E P L I E S    (Newest First)
surjpanj 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
Hideo Fujii 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000