toggle percentual from matrix
1 view (last 30 days)
Show older comments
how toggle % from matrix?
per=5;
a=magic(4)
i want to toggle from each element per (5%)
0 Comments
Accepted Answer
Star Strider
on 30 Sep 2023
Perhaps this —
per=5;
a=magic(4)
apr = a*(1-0.05) % 95% Of The Value
apr = a*0.05 % 5% Of The Value
.
4 Comments
More Answers (0)
See Also
Categories
Find more on Sparse Matrices 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!