Loop Function to index table and create new vairables
2 views (last 30 days)
Show older comments
Patrick Lonergan on 4 Jun 2021
Commented: Bob Thompson on 4 Jun 2021
I am looking to try and create seperate tables for differen failure events.
I have filtered each failure event using the find function;
I now want to creat several tables of the measure parameters (newtimetable) based on the identified rows in vairable (Ones). I was thinking of using a for loop, but cant seem to get it to work. If I was to do it manually for each table the code would be:
I hope that makes sense and open to any suggestions or methods
Bob Thompson on 4 Jun 2021
Are you getting a specific error message when you perform the for loop? How do you know it's not working?
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!