(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

I have a function y where y = 3x+2

I made x as a vector in matlab:

for i=1:10

x(i) = 4*i

but when i do a plot, i dont want to plot y against the vector x but against x as an argumetn of the function.

In general if i have any function...how do i plot it against its argument (not the argument as a vector)

Thank you

2. Relevant equations

3. The attempt at a solution

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

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!

# Homework Help: Matlab plot

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