Hello, I want to ask how to perform axes transformation for the graph where rotate x and y axis respectively with different angles such as 45 degree with respect to reference axis in order to plot the curve fit // graph in different rotation of axes (x and y axis).
Besides, I want to ask is that axis transformation can be done in Microsoft Excel or other softwares or applications? If does, can you provide the name of other softwares or applications and how to perform axis transformation by using this particular software?
The figure of axes transformation as shown in below.
It’s easiest to consider each new axis individually as based on the old axes.
x’ (x,y)= (x cos (theta), x sin (theta) )
y’ (x,y) = (-y sin(theta), y cos(theta) )
So for any point with artbitrary x,y values:
x’ = x cos(theta) -y sin (theta)
y’ = x sin (theta) + y cos ( theta)
A lot of programs or applications that can handle trigonometric functions should be able to do this. But the question is, is the input method and delivery method suited for what you want to do with the data. Matlab and Mathematica is perfect for handling vector stuf. But can be costly and has a learning curve to use. Excel and other spreadsheets can do also, but you need to make your own formulas. So also a learning curve, but less steep I guess. And how to input the data, or how many it involves, is not something that you have explained sofar. So, it’s hard to suggest anything. Even if I knew all the posibilities available. Which I don’t.
Basically, my whole project is dealing with analogue data acquisition that used to determine the position of the shaft based on the ADC value obtained from input signal. By using these ADC value, plot a curve fit in different axes transformation.
Since each shaft has different axes transformation which is not the default x and y axes. Therefore, based on different axes (x and y axis) provided in shaft, need to plot a curve fit.
If you have an ADC, then do you also have a microcontroller (attached to it)? If so, then it should be able to calculate this. Though, a microcontroller is not very suited to do floating point trigonometric functions. A pc would find that alot easier to do, but the numbers would need to be transfered from the ADC to the pc, and into the program.
Actually, my microcontroller is Arduino Mega 2560 Board whereas my external ADC device is MCP3008. By interfacing between MCP3008 and Arduino Board, the ADC operation is performed by MCP3008 and then read by Arduino in order to display ADC results in Serial Monitor of Arduino.