1. Since you have to record continuously, it is better to set "FramesPerTrigger" to Inf instead of setting "TriggerRepeat" to Inf. This is because, when "TriggerRepeat" is Inf it will capture specified number of frames only when the trigger condition is met. Thus, setting "FramesPerTrigger" to Inf is more reliable in capturing all the frames.
2. There is no direct command in MATLAB that I know of is able to do that.