Ho to enter this equation and plot it
1 view (last 30 days)
TastyPastry on 5 Nov 2015
Well you can't do either right matrix or element by element division on the vectors X and w. X is 1x41 while w is 1x2. I'm assuming you need to do element by element division, which is ./, but even then, that wouldn't work since your vectors aren't the same size.
Thorsten on 5 Nov 2015
Edited: Thorsten on 5 Nov 2015
I'm not sure what you want, but if you want to evaluate y for every combination of x and w on a 2D grid, you can use:
[X, W] = meshgrid(x,w);
Note that I used a differed w with more than just 2 values such that you can use surfl.