필터 지우기
필터 지우기

How can I apply a command [select a section of data] to all the variables and structures in my workspace?

조회 수: 1 (최근 30일)
I thought of using logical operators but don't really know how to do it. Cheers!

답변 (1개)

Massimo Zanetti
Massimo Zanetti 2016년 10월 7일
Generally you can list them by command who and then evaluating a functional expression by eval.
For example assume you have x=[3,6] in workspace, then to get the mean:
C=who;
h=eval(['mean(',C{1},');']);
m=4.5

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by