Is it possible to take inputs as several sets?
Afficher commentaires plus anciens
prompt = {'Enter the co-ordinates of points eg (x1,y1,z1,x2,y2,z2,.....: '};
title = 'Environmental forces';
answer = inputdlg(prompt,title);
forces = str2num(answer{:});
The above code will read any number inputs given by the user. Since they are co-ordinates what if we want to work in such a way that it reads the value in set of 3 i.e. the first three values entered will be x1, y1, z1 then x2, y2, z2... is it possible?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Semiconductors and Converters dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!