Desire result , How to get table like this? I'm trying to create an auto data collection software by using GUI.
Best Answer
As far as I can tell the only difference between the two branches of theif is the value ofStatus, so a better way of writing thatif ... else would have been:
Nothing depends on the iteration variablek in your loop, so, yes you're going to be writingn times the same things. I suspect thatNo should be
No = num2str(k);
As forx andareaRatio, since they're both scalar I have no idea how they're supposed to change in the loop. Note thatx andareaRatio are the same since earlier you havex = areaRatio. Why have two names for the thing? It just adds confusion.
Best Answer