Can LoggedSignal in provided Link contain more than just the state?

H
harry_marcel · May 22, 2021 · 2K views
Question
In this link, LoggedSignals is used as the State. However lets say I wanted LoggedSignals to contain three matrices or three vectors, one of them being the actual state. Could I contain those three matrices in LoggedSignal and then just let observation have the actual next state. Additionally if that is allowed, how would I define my observation info, would I use rlFiniteSetSpec or rlNumericSpec (My offical state would just be a binary vector of size N but I want to have two other matrices, x and y lets say, so that I can utlilze them in myStepFunction.m)  
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Aug 26, 2026
LoggedSignals is not tied to the state or the observations, so you should be able to store whatever makes sense to you in that variable without changing the definition of your observation space. In fact, if you run
 
 
rlCreateEnvTemplate('myenv')
to get a template for a custom MATLAB environemt, you see that LoggedSignals is set to be empty.
 
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!