Info

This question is closed. Reopen it to edit or answer.

I am facing problem while coding which is I have length of operation time of Appliance=[2 3 4 5 6] in hr and I want..........

1 view (last 30 days)
I have length of operation time of appliance =[2 3 4 5 6] in hour and I want my loop to start such way that when appliance start then it give me output 1 for only 2 hours and similarly for appliance 2 starts output is 1 other than this zero for 3,4 and appliance and its operation time is given so I need for loop here to do this.Kindly help me out. Thanks
  1 Comment
Rik
Rik on 2 Mar 2017
This is really difficult to parse. Try adding commas and periods.
Also, have a read here and here. It will greatly improve your chances of getting an answer.
What should your code do? What have you tried already? What errors or unwanted results are you getting. If these answers can be answered you make it easier for people to answer your question. There are enough questions to keep everybody busy. Follow this advice and you will increase the odds that people will be busy with your question.

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!