Finding multiple Matrix in a txt file
I want to do radiobiological calculations for structures in a patient with two different plans. I have a txt file with all the data in it. The txt file contains among other things the biological structure (which exists in both plans), the biological data in two columns and two rows that specifies what plan and what structure it is.
I know how to code the math to do the calculations, but how do I most easy read the text file and store each plans column in like a matrix?
For example (in my own dumb coding brain) I would like matlab to "Search a txt file that has a certain name that the user can specify. For a specific organ like the bladder, put the data in a variable called something like "Bladder Plan 1" and "Bladder Plan 2". Do math. Do same for all other organs. Put result in a report. Save as pdf or file". I hope that the wonderful Matlab community can help me, since I am no Matrix wizard with coding.
For all patients the structures all have the same naming convention, so I guess I could specify somewhere/somehow what organs should be searched for in the text file and what I would like the variable to be called, so that the search in the text file could go quick.
If anyone has any tips and suggestions that would be great. I have attached an anonymized txt file of how it could look like.I want to do radiobiological calculations for structures in a patient with two different plans. I have a txt file with all the data in it. The txt file contains among other things the biological structure (which exists in both plans), the biological data in two columns and two rows that specifies what plan and what structure it is.
I know how to code the math to do the calculations, but how do I most easy read the text file and store each plans column in like a matrix?
For example (in my own dumb coding brain) I would like matlab to "Search a txt file that has a certain name that the user can specify. For a specific organ like the bladder, put the data in a variable called something like "Bladder Plan 1" and "Bladder Plan 2". Do math. Do same for all other organs. Put result in a report. Save as pdf or file". I hope that the wonderful Matlab community can help me, since I am no Matrix wizard with coding.
For all patients the structures all have the same naming convention, so I guess I could specify somewhere/somehow what organs should be searched for in the text file and what I would like the variable to be called, so that the search in the text file could go quick.
If anyone has any tips and suggestions that would be great. I have attached an anonymized txt file of how it could look like. I want to do radiobiological calculations for structures in a patient with two different plans. I have a txt file with all the data in it. The txt file contains among other things the biological structure (which exists in both plans), the biological data in two columns and two rows that specifies what plan and what structure it is.
I know how to code the math to do the calculations, but how do I most easy read the text file and store each plans column in like a matrix?
For example (in my own dumb coding brain) I would like matlab to "Search a txt file that has a certain name that the user can specify. For a specific organ like the bladder, put the data in a variable called something like "Bladder Plan 1" and "Bladder Plan 2". Do math. Do same for all other organs. Put result in a report. Save as pdf or file". I hope that the wonderful Matlab community can help me, since I am no Matrix wizard with coding.
For all patients the structures all have the same naming convention, so I guess I could specify somewhere/somehow what organs should be searched for in the text file and what I would like the variable to be called, so that the search in the text file could go quick.
If anyone has any tips and suggestions that would be great. I have attached an anonymized txt file of how it could look like. radiobiology MATLAB Answers — New Questions