필터 지우기
필터 지우기

how to dynamically assign data to a variable

조회 수: 2 (최근 30일)
Amit
Amit 2014년 12월 3일
답변: Sean de Wolski 2014년 12월 3일
for ii=1:20
assignin('base', ['PClean_',num2str(ii)],ActualReading(1:end,17));
PClean=['PClean_%d',ii];
I wish to assign data of PClean_1,PClean_2,PClean_3,PClean_4....and so on to PClean but i am not able to assign it for each loop

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 12월 3일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by