Re: Operands to the || and && operators must be co



sorry for not having been more clear.
i meant this: put the additional two lines right underneath the
command <err=...>

err=lasterror;
err.message
err.stack
% -or- enter the debug mode right after the first command
keyboard
% and scrutinize <err> at the (debug) command prompt

us

I have added two lines
%%%%%

catch %in case of any error

ErrorOnDicomOpening = lasterr
err=lasterror
err.message
err.stack
if isobject(hm)
delete(hm);
end
dcmPatient = [];
end

%%%%%%
, now I get
//////////////////////////////////////////////
loaddcmdir

ErrorOnDicomOpening =
Operands to the || and && operators must be convertible to logical
scalar values.

err =

message: 'Operands to the || and && operators must be
convertible to logical scalar values.'
identifier: 'MATLAB:nonLogicalConditional'
stack: [9x1 struct]

ans =

Operands to the || and && operators must be convertible to logical
scalar values.

ans =

9x1 struct array with fields:
file
name
line


/////////////////////////////////////////////////
if you want see it, I can send you a dicomdir file from my CD via
email. I am sorry to make you so much stress.

P.S.: With uigetfile I can select only one file and not an array,
seconds if I try to load this one file I don^t get its name:
///////////////////////////////////////////////////
run('C:\Programme\MATLAB71\work\loaddcmdir\loaddcm.m')
ErrorOnDicomOpening =
Error using ==> dicominfo>get_info
File "G:\01111026\0" not found.
/////////////////////////////////////////////////////
I navigate to file location, select a file and instead of its name I
get "0" (zero), but it is now not so important for me, more important
is to interpret a Dicomdir functionality and to understand why did it
work in previous version of MatLab......
.



Relevant Pages

  • IF condition selection....
    ... I have problem with IF command now. ... Operands to the || and && operators must be convertible to logical ... scalar values. ...
    (comp.soft-sys.matlab)
  • Re: Strange errors
    ... when I just cut and past the last command it works without ... I turned JIT off and I still get the randomly get these ... Type "dbstop if error" without the quotes at the prompt, ... you'll enter debug mode. ...
    (comp.soft-sys.matlab)
  • Warning: "Project will be debugged with specific security permissions"
    ... my project and run in debug mode. ... command line arguments are not be passed to the ... I installed the latest Managed DirectX SDK (I think it's ... Clicking NO cancels the execution ...
    (microsoft.public.vsnet.debugging)
  • Re: diff type operations in TCL
    ... reasonably fast. ... (which really does do memcmp; ... slot 0, scalar, arg, "file1" ... Command 2: "file size $file1" ...
    (comp.lang.tcl)
  • Re: Strange errors
    ... when I just cut and past the last command it works without ... I turned JIT off and I still get the randomly get these ... but again in debug mode everything ... wouldn't solve the root problem, ...
    (comp.soft-sys.matlab)