Creating a matrix with for and input

14 ビュー (過去 30 日間)
Keyavn Haghani
Keyavn Haghani 2021 年 2 月 27 日
編集済み: KALYAN ACHARJYA 2021 年 2 月 27 日
I have created a matrix n*2 that i want the user to input the data (cordinate X , Y)
geom=zeros(nnd,2);
for i=1:nnd
for j=1:2
????????
end
end

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 2 月 27 日
編集済み: KALYAN ACHARJYA 2021 年 2 月 27 日
nnd=input('Enter nnd ');
...
geom(i,j)=input('Enter the Value: ')'
..
geom

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by