I need your help in the following situation. I have a 100x100 matrix with angle values ranging from -180 to 180. I would like to calculate the atan2 values for the above mentioned matrix, and the output should be in the same format (100x100 matrix).
I tried the following code:
But, I got the following error:
Could anyone help me in this regard? Expecting your replies and thanks in advance.
Here is my test.in file
Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004|
Script:
Remove.ksh
This script to remove $1 which I type in:
$ cat test.in
Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003... (0 Replies)
Hi
I am trying to create a modify a txt file via a sh script and I'm not sure how to do it.
I have this:
data1a#data2a#data3aµ data1b#data2b#data3bµ data1c#data2c#data3cµ
and I want to have this (more or less)
data1a data2a data3a
data1b data2b data3b
data1c data2c data3c
I know... (5 Replies)
Hello,
Can someone pls help me with some statistical calculation in awk
In excel there is a statistical function called "Mode".
How Mode works:
MODE returns the most frequently occurring, or repetitive, value in array or range.
Eg if we have 5 numbers in 5 different columns... (12 Replies)
Actually I got a list of file end with *.txt
I want to use the same command apply to all the *.txt
Thus I try to find out the fastest way to write those same command in a script and then want to let them run automatics.
For example:
I got the file below:
file1.txt
file2.txt
file3.txt... (4 Replies)
Hi, I would like to know what is the correct syntax to perform a function in awk. Although I have seen several examples, not get it to work, this is what I'm trying:
#!/bin/bash
awk
function multi (number) {
return number * 3
}
print multi (4)Thanks (2 Replies)
Hi,
I have file with below format and sample data - File is pipe delimited
Col1|col2|Account|Bal1|Bal2
1|2|1|10|5
1|2|2|10|2
1|3|3|10|3
I want output as
SUM|1|2|2|20|7
SUM|1|3|1|10|3
Can anyone give me awk command (4 Replies)
Hi all,
I need to have informations in a URL :
https://www.autolib.eu/stations/
Valors I need are in bold:
{"charging_status": "nonexistent", "rental_status": "future", "subscription_status": "nonexistent", "station_id": 791, "address": "10 rue de Rome, 93110 Rosny-sous-Bois", "lat":... (3 Replies)
hi,
I have used awk command to delimit my variable. But this that not worked.
Could you please let me know what need to be changed in my awk command
Input:
home/unix>cat test.txt
DAILY.JOB CHENNAI,8388
DAILY.JOB BANGLORE,3848
DAILY.JOB TRICHY,9489
DAILY.JOB TIRUPUR,8409
code
... (9 Replies)
Hi,
I am having script which contains many functions. Need to print each function name at the starting of the function. Like below,
functionname()
{
echo "functionname"
commands....
}
I've tried like below,
func=`grep "()" scriptname | cut -d "(" -f1`
for i in $func
do
nawk -v... (4 Replies)
Discussion started by: Sumanthsv
4 Replies
LEARN ABOUT XFREE86
glrotated
GLROTATE(3G)GLROTATE(3G)NAME
glRotated, glRotatef - multiply the current matrix by a rotation matrix
C SPECIFICATION
void glRotated( GLdouble angle,
GLdouble x,
GLdouble y,
GLdouble z )
void glRotatef( GLfloat angle,
GLfloat x,
GLfloat y,
GLfloat z )
PARAMETERS
angle Specifies the angle of rotation, in degrees.
x, y, z
Specify the x, y, and z coordinates of a vector, respectively.
DESCRIPTION
glRotate produces a rotation of angle degrees around the vector (x,y,z). The current matrix (see glMatrixMode) is multiplied by a rotation
matrix with the product replacing the current matrix, as if glMultMatrix were called with the following matrix as its argument:
x2(1-c)+c xy(1-c)-zs xz(1-c)+ys 0
(yx(1-c)+zs y2(1-c)+c yz(1-c)-xs 0)
xz(1-c)-ys yz(1-c)+xs z2(1-c)+c 0
0 0 0 1
Where c=cos(angle), s=sin(angle), and ||(x,y,z)||=1 (if not, the GL will normalize this vector).
If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glRotate is called are rotated. Use glPushMatrix and
glPopMatrix to save and restore the unrotated coordinate system.
NOTES
This rotation follows the right-hand rule, so if the vector (x,y,z) points toward the user, the rotation will be counterclockwise.
ERRORS
GL_INVALID_OPERATION is generated if glRotate is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_MATRIX_MODE
glGet with argument GL_COLOR_MATRIX
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX
SEE ALSO glMatrixMode(3G), glMultMatrix(3G), glPushMatrix(3G), glScale(3G), glTranslate(3G)GLROTATE(3G)