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?
Best Answer