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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Matrix Transformation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Stoßzahn

4 Posts

Posted - 08/10/2017 :  09:57:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

snowli

USA
1379 Posts

Posted - 08/10/2017 :  1:59:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Stoßzahn

4 Posts

Posted - 08/12/2017 :  11:59:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?

Edited by - Stoßzahn on 08/12/2017 12:00:09 PM
Go to Top of Page

snowli

USA
1379 Posts

Posted - 08/15/2017 :  4:58:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?

Go to Top of Page

Stoßzahn

4 Posts

Posted - 08/15/2017 :  5:49:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 08/16/2017 :  09:35:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Stoßzahn

4 Posts

Posted - 08/17/2017 :  05:34:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
yeah,thats exactly what I needed

thanks
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000