how i can found the region of absolute stability ?

조회 수: 2 (최근 30일)
sadeem alqarni
sadeem alqarni 2018년 7월 7일
댓글: sadeem alqarni 2018년 7월 8일
n=0:30:180
h=((768 *cos((1/2)*n) + 96* cos(n) - 864) ./ (40*cos (1/2*n)+ 2*cos(n)+ 102))
figure
plot(n,h, 'b*-', 'LineWidth', 2)
grid on;
xlabel('n', 'FontSize', 20);
ylabel('h', 'FontSize', 20);

채택된 답변

Image Analyst
Image Analyst 2018년 7월 7일
Because you're using / (array division) instead of ./ (element by element division). Try this:
n=0:30:180
h=((768 *cos((1/2)*n) + 96* cos(n) - 864) ./ (40*cos (1/2*n)+ 2*cos(n)+ 102))
figure
plot(n,h, 'b*-', 'LineWidth', 2)
grid on;
xlabel('n', 'FontSize', 20);
ylabel('h', 'FontSize', 20);
% Do it again with more resolution.
n = linspace(min(n), max(n), 1000);
h=((768 *cos((1/2)*n) + 96* cos(n) - 864) ./ (40*cos (1/2*n)+ 2*cos(n)+ 102))
hold on;
plot(n,h, 'r-', 'LineWidth', 2)
grid on;
xlabel('n', 'FontSize', 20);
ylabel('h', 'FontSize', 20);

추가 답변 (2개)

sadeem alqarni
sadeem alqarni 2018년 7월 8일
how i can found the region of absolute stability ?
  댓글 수: 2
Image Analyst
Image Analyst 2018년 7월 8일
How is this an "Answer" to your original question? Anyway, as you can see from my plot, it depends on how you define stable. The values are constantly changing so they're not stable, however the overall pattern seems pretty stable - it seems to oscillate pretty much the same way over the time period plotted.
sadeem alqarni
sadeem alqarni 2018년 7월 8일
How do I do this plot,since my brograms above??

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


sadeem alqarni
sadeem alqarni 2018년 7월 8일
  댓글 수: 2
Image Analyst
Image Analyst 2018년 7월 8일
Is this your answer?
sadeem alqarni
sadeem alqarni 2018년 7월 8일
no it is not my answer but i want know how i plot it?

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

카테고리

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