Jump to content
PLC Forum

Partecipa anche tu alla Live su Youtube martedì 28/01/2025 per festeggiare i 24 anni di PLC Forum

Per ulteriori informazioni leggi questa discussione: https://www.plcforum.it/f/topic/326513-28012025




matlab codice


Recommended Posts

Posted (edited)

Ciao a tutti, su matlab ho un cell array che indico con Z che cambia in modo dinamico. A una certa iterazione può valere:
                               {[1 4 0 1 5 9]}
         Z    ------->      {[ 4 3 2 9]}
                               {[ 0 0 0 0]}
                               {[ 0 3 6 4 7 0]}

Come posso eliminare la cella costituita da soli zeri per ottenere il seguente cell array Z ad ogni iterazione?

 

                               {[1 4 0 1 5 9]}
         Z    ------->      {[ 4 3 2 9]}
                               {[ 0 3 6 4 7 0]}
 

Edited by giao12

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...