Printing Certain Number from a Vector
4 views (last 30 days)
Show older comments
Faris Amzar Mohamad Azrai
on 4 Jun 2020
Commented: Stephen23
on 4 Jun 2020
Hello, can anyone help me? I want to print the numbers which is not 0 from this vector using fprintf. So, basically, i want to print out the numbers 1 and 10 in one line and in a vector form in the statement.
vector = [0 0 0 1 10];
fprintf(....)
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Environment and Settings 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!