creating loop for subtracting values from matrix which size is variable.
2 次查看(过去 30 天)
显示 更早的评论
for example
a=[y1,x1,y2,x2,....yn+1,xn+1]
I wanna subtract all y values as y_column=[y1;y2;y3;y4;.....;yn+1] and
I wanna subtract all x values as x_column=[x1;x2;x3;x4;......;xn+1]
what kind of loop I have to write for these subtracting?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!