Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rank 2 array problem!

Status
Not open for further replies.

milenko76

Technical User
Mar 26, 2010
100
PT
I am writing in my code some values to file,but I want to write them to new array.
apr1dsens(j,3,iprd)=2*g*(real(sens_zyx)*real(zyx)
& +aimag(sens_zyx)*aimag(zyx))
apr1dsens(j,4,iprd)=g1*(aimag(sens_zyx)*real(zyx)
& -aimag(zyx)*real(sens_zyx))
write(214,*)apr1dsens(j,3,iprd)
write(214,*)apr1dsens(j,4,iprd)
But when I try sens1p(i,j)=apr1dsens(j,3,iprd),apr1dsens(j,4,iprd) I got ircg.for(926): error #5082: Syntax error, found ',' when expecting one of: <END-OF-STATEMENT> ;
How to create a new array from these two?
 
milenko76 said:
But when I try sens1p(i,j)=apr1dsens(j,3,iprd),apr1dsens(j,4,iprd) I got ircg.for(926): error #5082: Syntax error, found ',' when expecting one of: <END-OF-STATEMENT> ;
How to create a new array from these two?
I wonder, why you wonder that you get a syntax error...
You try to assign 2 values to a variable, something like my_var =1.5, 3.7

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top