how to get the variable in the place of a condition?
Show older comments
Hi,
I have a code as
dapicount1a = dapicount1 - Count(distanceDapi,'<10');
So, in the plalce of <10 I wish to enter a value with the help of variable "A".
I did like
dapicount1a = dapicount1 - Count(distanceDapi,'<A');
But I got error
"A" is the entered value using input dialog box.
Can you help me in solving this.
Thanks....
2 Comments
Adam
on 29 Oct 2014
What is Count? Is it from some toolbox or Simulink? In which case please put that in the Products box. Or is it your own defined function?
Manoj Kumar
on 29 Oct 2014
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!