Creating a variable depending one another
4 次查看(过去 30 天)
显示 更早的评论
Hi!
I want to create one variable depending if another is above or below zero, I currently have the following code;
Buy = r(average>0)
But I want the "Buy" variable to include another variable for when average<0, so that "Buy" consists of r when average>0 and f when average<0. I tried to use help, but I havent found anything to help me yet. If somebody could point me in the right direction it would be greatly appreciated! Thanks!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!