It's just an example but how can i change parameters i,j also inside the function fprintf, in the part 'let t_t[i,j]'? is there any other way to change this formulation to satisfy this request? thank you so much
Info
This question is closed. Reopen it to edit or answer.
Show older comments
the code is the following one :
for i=1:20
for j=1:20
dist_km (i,j) = distanza_km;
temp (i,j) = tempo/60;
fprintf('let t_t[i,j] = %f\n', temp(i,j));
end
end
Answers (1)
fprintf('let t_t[%i,%i] = %f\n', i, j, temp(i,j));
should work.
1 Comment
Andrea Maria Marchionni
on 17 Oct 2018
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!