I am explaining my doubt with an example.
Eg: suppose i load a matfile named 'validation.mat' using load command, the contents of it get stored under a variable named " validation" in my workspace. so now can retrieve its content using validation(1,1) ,and so on.(manually created matfile)
now i want to programmatically create a similar kind of matfile at particular directory and give it name "execution.mat". and i also want to load this newly created matfile using load command to workspace and perform actions like executiom(1,1) = 2; and so on.
also note that this nameword "execution" i am deriving from a field of structutre.
so psuedocode would go as:
- file_name = struct.somefield ------> here filename contains "execution"
- now using file_name which contains execution i want to create execution.mat,load execution and process it