필터 지우기
필터 지우기

How to process multiple variable through a single equation

조회 수: 2 (최근 30일)
Andrew
Andrew 2013년 3월 28일
I am trying to shorten a script that is enormous. I am not sure how to create an idependent name, and use the variable in the equation and loop through with hundreds of variables. Here is an example of my problem:
SigIdx = {'r' 't' 'y' 'u' 'i' 'o'};
'SigIdx'_ISO = gridfit(n,M,'SigIdx',ngrid,Mgrid);

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 28일
  댓글 수: 1
Andrew
Andrew 2013년 3월 28일
This helps with creating the stucture and simplifies my scripting, but I am still having problems with the equation.
I still am having problems having the equation process the data in each variable. What I neglected to mention was that 'r' and all the variables have numerical values, not sure if that matters.
I see that creating a structure can help my naming convention, but how do I get each individual variable to run through the equation?
SigIdx = {'r' 't' 'y' 'u' 'i' 'o'}; 'SigIdx'_ISO = gridfit(n,M,'SigIdx',ngrid,Mgrid);

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by