How do I use a formula out of a cellarray in a for-loop?
이전 댓글 표시
Hi Community,
In measurement evaluation it is necassary to analyze uncertainties (e).
Time = Data(:,1);
Temperatur = Data(:,2);
In my Gui it should be possible to choose an e_i from an array:
Formula1 = 'a*Temperatur+b';
Formula2 = 'a*Temperatur+2b'; % and so on
DefaultAccuracy = {Formula1; Formular2...};
A popupmenu gives a value k that stands for the Input Accuracy:
InputAccuracy = DefaultAccuracy {1, k};
If I use e = a*Temperatur+b the errorbar order works:
errorbar(Time, Temperatur, e)
In the next step e should be variable:
MeasurementLength = lenght(Data);
How do I have to develop a for-loop to get e by choosing the formula with the popupmenu
for i = 1:MeasurementLength
e{i} = InputAccuracy{Temperatur{i}}
end
Please excuse my bad english and thanks for helping me! Christian
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!