forward and backward value
2 次查看(过去 30 天)
显示 更早的评论
Hi, Im begining with Matlab. I have a list of 20 values and my equation is x=sin(w2)-sin(w1), w2 is the forward value and w1 is the backward, how to do this?
3 个评论
Steven Lord
2017-5-23
Let's say your list of values was stored in a variable w:
w = 1:6
What exactly would you expect x to be and how would you compute that (with pencil and paper / marker and whiteboard / stick and sandbox / etc.)?
Image Analyst
2017-5-23
I also don't know what you want. Let's say you havfe 20 w2 values and 20 w1 values in two arrays. Now, how to do what? You already have an equation for x, which is probably also a 20 element array. Do you just want to plot it, like
plot(x);
?????
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!