| New Reply |
Plotting two vectors and a function in MATLAB |
Share Thread | Thread Tools |
| Mar16-12, 01:58 AM | #1 |
|
|
Plotting two vectors and a function in MATLAB
This may seem stupid, but I can't figure out how to plot the following function in MATLAB:
Code:
x1 = -5:1:10; x2 = 0:1:15; func = (x2-5.1*x1.^2/(2*pi).^2+5*x1/pi-6).^2+10*cos(x1)*(1-1/(8*pi))+10; Never mind, guys. I got it. You have to convert each variable into matrices by using the meshgrid function. |
| New Reply |
| Thread Tools | |
Similar Threads for: Plotting two vectors and a function in MATLAB
|
||||
| Thread | Forum | Replies | ||
| MATLAB function plotting | Engineering, Comp Sci, & Technology Homework | 2 | ||
| plotting max function in matlab | Math & Science Software | 0 | ||
| help! plotting transfer function in matlab.. | Math & Science Software | 6 | ||
| Plotting a function - MATLAB | Math & Science Software | 2 | ||
| Plotting vectors in Maple or MATLAB | Math & Science Software | 2 | ||