the rows are not saving

1 view (last 30 days)
Mahmoud Chawki
Mahmoud Chawki on 15 May 2022
Commented: Jan on 19 May 2022
for i=1:size(strain,1)
if i ~=1 && i~=size(strain,1)
s=[firstrow; ff ;lastrow]
i rss to save each time the row that im extracting, however it is not saving, i tried to use rss(i) and it is saying that (Unable to perform assignment because the indices on the left side are not compatible with the size of the right side). i tried to use {I} instead and the first row is coming out to be empty.
what is the solution?
i want rss to save everytime is is extracting the specified row
Jan on 19 May 2022
@Mahmoud Chawki: The purpose of the code is not clear. Then it is not possible to fix it.
for i=1:size(strain,1)
if i ~=1 && i~=size(strain,1)
for i = 2:size(strain,1) - 1
But what should be the contents of ff?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by