For Loop using in an array to find the value one by one
1 view (last 30 days)
Show older comments
Commented: Maheen Fazal on 17 Oct 2019
Hi Sir, I have an array e.g. A=[19 12 87 34 54] and i have to use the array value one by one to find the F value e.g.F=0.4*20+A so i could i do this??
use for loop? like
A=[19 12 87 34 54]
kindly help me to find the answer if possile,
Thank you in advance
Yuan Li on 17 Oct 2019
Use matrix operation directly.
F = 0.4*20 + A;
Then, F will be the vector you want.
More Answers (0)
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!