comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Matlab to IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Matlab to IDL [message #36627] Sat, 11 October 2003 09:50 Go to previous message
dino.nicola is currently offline  dino.nicola
Messages: 7
Registered: October 2003
Junior Member
hi! i'm trying to translate this Matlab script into IDL, but the image
I show is not right.

function [RAD]=read_1rad(i_pr,Directory,prefix)
i_pr
Directory
CONC=[Directory prefix]
nome=[ CONC num2str(i_pr) '.sdt']
FID=0;
FID=fopen(nome,'r','ieee-be');
[RAD,c]=fread(FID,[1024,512],'float32');
figure(3), imshow(RAD,[ ]); title(' proiezione ')
fclose(FID);
colormap(gray(512));


Here is the IDL script:

file='c:\pcon_1.sdt'
rad=fltarr(1024,512)
openr,lun,file,/get_lun
point_lun,lun,0
readu,lun,rad
close,lun
device,decomposed=0
loadct,0
tv,rad
end


Anybody can help me? thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE Mac OS X
Next Topic: Tutorial: Using idl in java applications

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:24:10 PDT 2025

Total time taken to generate the page: 0.00389 seconds