Info

此问题已关闭。 请重新打开它进行编辑或回答。

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 次查看(过去 30 天)
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 个评论
Rik
Rik 2017-3-2
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.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by