Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

2 Ansichten (letzte 30 Tage)
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

Antworten (1)

Adam
Adam am 16 Okt. 2018
Bearbeitet: Adam am 16 Okt. 2018
fprintf('let t_t[%i,%i] = %f\n', i, j, temp(i,j));
should work.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by