Any way to have a function return a variable dynamically

조회 수: 2(최근 30일)
I want a function to return a variable with a dynamic name so returns variable mar19 for today. Is this possible
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2012년 3월 19일
I pointed out one use with assignin but I would not recommend it.
Read which is strictly related and specifically concentrate on the dynamic structure.

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

채택된 답변

Chad Greene
Chad Greene 2012년 3월 19일
Combined with the above comment from Oleg, if you only need today's date, this will be useful:
Formatted the way you suggest,

추가 답변(0개)


아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by