MATLAB Answers

Having a problem with for loops. In the given code I need to store the 4 values in 4 seperate places like x1,x2,x3,x4, is this the correct way to write it ? and if my xf is defines in linspace then I'm having a error that the indices aren't compatib

7 views (last 30 days)
Vincent Abraham
Vincent Abraham on 17 Mar 2020
Answered: KSSV on 17 Mar 2020
for m=1:n
x(m)=input('Enter x coordinate : ' );
y(m)=input('Enter y coordinate : ');
z(m)=input('Enter z coordinate : ');
%field point - source point for getting vector r


Sign in to comment.

Accepted Answer

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!