LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

complex number file writing

hi all

       i want to write complex number to a file....how i want to do....

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 1 of 6
(3,964 Views)
How about simply using the File I/O functions? What exactly is your difficulty? Are you looking to save this to a text file? Straight binary file? LVM file?
Message Edited by smercurio_fc on 12-19-2008 08:56 AM
Message 2 of 6
(3,963 Views)

hello smercurio_fc :

                                       

                                i want to write the complex number to the file. example : 2+i3 ..... i want to read the data in matlab using the command load . i should read like 2+i3 ...

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 3 of 6
(3,944 Views)

If you want to write to a formatted text file, a plain %f format will give you "xxx + yyy i" (works with e.g. format into string, array to spreadsheet file, etc).

 

 

 

If you want to have the i in front of the imaginary parts without spacing, you need to split the real and imaginary parts and do your own formatting.

 

What does matlab actually want?

Message Edited by altenbach on 12-19-2008 08:40 AM
Message 4 of 6
(3,937 Views)

Hello there,

 

I followed your reply but i can't seem to find the blocks from their image. If you may pass the names of the blocks?

 

Regards,

0 Kudos
Message 5 of 6
(3,436 Views)

They are Format into String, and Array to Spreadsheet String

0 Kudos
Message 6 of 6
(3,422 Views)