in matlab how do i make a variable which is dependant on another variable, for example(adsbygoogle = window.adsbygoogle || []).push({});

y=2*a+3 for any a,

so that when i change a, y will automatically change

i have only managed to set a value for a, then set y and i get a fixed value for y

**Physics Forums | Science Articles, Homework Help, Discussion**

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!

# Matlab beginner, making variables

**Physics Forums | Science Articles, Homework Help, Discussion**