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 Transformation

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
Stoßzahn Posted - 08/10/2017 : 09:57:24 AM
Hi everyone,

I've got a 500x3000 matrix. The columns represent the x values, the rows the y values and the matrix itself shows the intensity, which results in a nice picture.

The Problem: I don't want so see the Picture in x and y, but in a and b with:

a= cos(y)-cos(x-y)
b= sin(y)+sin(x-y)

My first thought was, I would need some kind of matrix transformation. But I have no idea, if it is right or how to do that.

Does anyone of you have a clue how to do that?


Thanks guys
Stoßzahn
6   L A T E S T    R E P L I E S    (Newest First)
Stoßzahn Posted - 08/17/2017 : 05:34:43 AM
yeah,thats exactly what I needed

thanks
Hideo Fujii Posted - 08/16/2017 : 09:35:51 AM
HiStoßzahn,

> I got an 2D Graph with the colour as intensity.

You can convert the matrix data to XYZ worksheet by "Matrix: Convert to Worksheet" menu with the Method="XYZ Columns" option.
After this conversion, you can convert the XY values according to your formula using Set Column Values tool. See the sample below:



Does it work for you?

--Hideo Fujii
OriginLab
Stoßzahn Posted - 08/15/2017 : 5:49:30 PM
Hi Snow,

now I got the Problem: I got an 2D Graph with the colour as intensity.
Does this Matrix Transformation also work with a 2D colour plot?

Unfortunately I am not allowed to send any data for security reasons.


Stoßzahn
snowli Posted - 08/15/2017 : 4:58:54 PM
Hi Stoßzahn,

Did you plot a 3d surface plot? This is definitely in 2017.
See


Or u can send your opj file to tech@originlab.com so we could take a look.

Thanks, Snow

quote:
Originally posted by Stoßzahn

Thanks Snow for your help, I think this is exactly what I need.

Everything worked so far, except Step 10.
I got the OriginPro 2017G in German, but I can't find anything to connect the axis to the new calculatet matrices in the layer performance.

On the left side I got an open folder "plot", within only the "Layer 1" and within that only "[Matrix]MSheet1!".

Do you know, what I mean?

Stoßzahn Posted - 08/12/2017 : 11:59:04 AM
Thanks Snow for your help, I think this is exactly what I need.

Everything worked so far, except Step 10.
I got the OriginPro 2017G in German, but I can't find anything to connect the axis to the new calculatet matrices in the layer performance.

On the left side I got an open folder "plot", within only the "Layer 1" and within that only "[Matrix]MSheet1!".

Do you know, what I mean?
snowli Posted - 08/10/2017 : 1:59:00 PM
Hello,
Origin supports parametric 3d plot in recent versions.

So here is what you can do:
1. With matrix active, choose View: Show Image Thumbnail.
Then the intersity shows as an image thumbnail.
2. Right click the thumbnail and choose Add twice so two other matrix objects are added. They use the same x,y values as Intersity matrix.
U can double click 2 and 3 and rename them as a and b.

3. Click on 2nd image thumbnail to activate it.
4. Select Matrix: set values menu.
5. Enter cos(y)-cos(x-y) as formula click Apply.
6. Click >> button in the dialog to go to 3rd matrix.
7. Enter b= sin(y)+sin(x-y) and click OK.
U can see a, b matrix are filled with calculated values.

8. Now go back to Intensity matrix and choose Plot: menu to plot your 3d colormap surface graph.

They are plotted against x and y by default.

9. Double click the plot to open Plot Details dialog.
10. Go to Surface tab and check Parametric Surface. Specify X Matrix as Mat(2) and Y Matrix as Mat(3). Click OK.
11. Ctrl+R or Click Rescale to show All button on the right side of origin workspace to update the axis scales.


Let me know if this is what you want.

Thanks, Snow

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