I am trying to write a matlab code to save all my parameters into one .mat file.
My parametera, for example:
a = 2
b = 1
c = 1.3
d = 99
Q1: I tried to use fwrite, but have no idea how to do continue.
fid = fopen('parameter.mat', 'wb'); <----create .mat file to be written
fwrite(fid, ??????, 'integer'); <---------what should I put in the ??? space
Q2: how I continue to write the rest of the parameters and save all into one parameter.mat file???
Please help, I sincerely wanted to learn it and write it myself.