Hi everyone. I'm trying to print a vector as follows:
fprintf(doc,'k0 = [%.3f %.3f %.3f %.3f].',k0);
where k0 is a 4-dimensional vector with numerical components and doc is a .txt document. Nonetheless, I would want to print any other vector k0 without making explicit reference to its dimension. I mean, I would like to change de dimension of k0 and not changing the code. Can someone help me?