Olayinka
Followers: 0 Following: 0
Feeds
提问
How do I break an array into individual element without using loops
x=[3,4,5,6,7,8,9,10] for i=1:length(x) y=x(i) end I want a function to give me this result without using a loop
12 months 前 | 1 个回答 | 0
1
个回答提问
How to save the result of each loop separately
I want to create two variables which are matrices is zeros(3,2) and zeros(4,2) y = [3 4]; for i=1:length(y) x=zeros(y(i)...
1 year 前 | 3 个回答 | 0
3
个回答提问
How do I form a matrix from an array of rows and columns
A=ones(10) a=[1 3 5 6 9] b=[1 2 4 7 9] A(a,b)=0 should provide A(1,1)=0 A(3,2)=0 A(5,4)=0 A(6,7)=0 A(9,9)=0
1 year 前 | 2 个回答 | 0