필터 지우기
필터 지우기

Subscripted assignment between dissimilar structures?

조회 수: 3 (최근 30일)
SHARAD KUMAR UPADHYAY
SHARAD KUMAR UPADHYAY 2019년 7월 25일
댓글: Jan 2019년 7월 25일
I am using two file as
i=[0:.01:1]
for j=1:length(i)
A=sin(i)
save('test.mat','A','i');
end
%%%%and this
i=[0:.01:1]
for j=1:length(i)
A=cos(i)
save('test1.mat','A','i');
end
I wants to plot these two data in one plot and using
data(1)=load('D:/Seminars_and_conference/DAE_SSPE_2019/New_folder_CD/DAE_SSPE_2019/concentration_test/test1/mixing/test.mat')
data(2)=load('D:/Seminars_and_conference/DAE_SSPE_2019/New_folder_CD/DAE_SSPE_2019/concentration_test/test1/mixing/test1.mat')
for i=1:numel(data)
datastruct=data(i)
plot(datastruct.i,datastruct.A)
hold on
end
but i found error as Subscripted assignment between dissimilar structures.
Error in dragrate_SiO2 (line 1)
data(1)=load('D:/Seminars_and_conference/DAE_SSPE_2019/New_folder_CD/DAE_SSPE_2019/concentration_test/test1/mixing/test.mat')
  댓글 수: 1
Jan
Jan 2019년 7월 25일
I used the buttons on top of the field for editing the message to format it. You can do this by your own also to improve the readability of the code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by