(adsbygoogle = window.adsbygoogle || []).push({}); changing part of a name of a variable in a "for" loop

hello everyone!

let's say i have the equation between two variables: DT10sec= A*T10sec, working in matlab. How can i use a "for" loop to calculate the equation DT20sec= A*T20sec DT30sec= A*T30sec, DT40sec= A*T40sec,... etc

How can i interfere in just a part of the name of a variable? i would suppose something like the following

for i=1:5

DT"i"sec= A* T"i"sec

end

but it is not the right symbol

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Changing part of a name of a variable in a for loop

Loading...

Similar Threads for Changing part name | Date |
---|---|

MATLAB Changing the scale of the y-axis | Mar 28, 2018 |

Mathematica Mathematica Real Part | Feb 24, 2018 |

Matlab -- how can i use a FOR loop if I have 2 variables changing | Oct 12, 2016 |

LaTeX Changing the order of references using bibtex to sequential | Mar 8, 2016 |

How to change heading size Bibliography | Apr 23, 2015 |

**Physics Forums - The Fusion of Science and Community**