MATLAB Answers

Using value stored in a matrix in a prompt.

3 views (last 30 days)
disp('Is there a member between Node [%d %d %d]' Node(i,1) Node(i,2) Node(i,3) 'and the node [%d %d %d]' Node(j,1) Node(j,2) Node(j,3) '[Y/N]?\n');
In the above line of code, I want to display coordinates of the nodes before showing an input prompt to user. The coordinates of the respective nodes are present in the matrix "Node". I have used the above code but it prints [%d %d %d] as it is. How to show the coordinates in the message? How to reframe the above line of code?


Sign in to comment.

More Answers (0)