How can I find a variation vector of a parameter ?

조회 수: 4 (최근 30일)
Mallouli Marwa
Mallouli Marwa 2020년 7월 17일
댓글: Rafael Hernandez-Walls 2020년 8월 27일
How can I find two vector of variation of parameters bf and bm which varies
bf = 355.5+-7%;
bm = 34.4+-20%;

답변 (1개)

Rafael Hernandez-Walls
Rafael Hernandez-Walls 2020년 7월 17일
N=100;
a = 355.5+7;
b = 355.5-7;
r = (b-a).*rand(N,1) + a;
figure
plot(r)
hold on
plot([1 N],[a a],'r')
plot([1 N],[b b],'r')
%
N=100;
a = 34.4+20;
b = 34.4-20;
r2 = (b-a).*rand(N,1) + a;
figure
plot(r2)
hold on
plot([1 N],[a a],'r')
plot([1 N],[b b],'r')
  댓글 수: 2
Mallouli Marwa
Mallouli Marwa 2020년 8월 27일
Please help me to rename the xlabel of the curve for a variation of r1 ( width of fiber) +-7%
N=100;
a1 = 355.5*1.07;
b1 = 355.5*0.93;
r1 = (b1-a1).*rand(N,1) + a1;
figure (1)
plot(r1)
hold on
plot([1 N],[a1 a1],'r','Linewidth', 2)
plot([1 N],[b1 b1],'r', 'Linewidth', 2)
ylabel ('Fiber width b_f \mum')
xlabel ('?????????????????????????')
Rafael Hernandez-Walls
Rafael Hernandez-Walls 2020년 8월 27일
xlabel ('variation of r1 ( width of fiber) \pm7%')

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by