フィルターのクリア

How can i get value of alpha using trail and error

1 回表示 (過去 30 日間)
Priyank Goel
Priyank Goel 2021 年 4 月 22 日
編集済み: DGM 2021 年 4 月 22 日
I have equation CL = 2*(sin(alpha))^2 * cos(alpha)
and value of CL = -0.525
I need value of alpha using trail and error running for loop in MATLAB but not getting, Please help me with possible soution
  3 件のコメント
Priyank Goel
Priyank Goel 2021 年 4 月 22 日
Thanks a lot for a well descriptive explaination!
I also got the exact solution for different alphas using "fzero" most close value to your solution being 1.8607.
Also, I would be grateful if you could tell how to get smooth curve for given points for x & y axis
x1 = [3.34, 3.93, 3.65, 2.50, 1]
x2 = [0.19, 0.36, 0.64, 0.84, 1]
y = [0.10, 0.20, 0.40, 0.60, 1]
DGM
DGM 2021 年 4 月 22 日
編集済み: DGM 2021 年 4 月 22 日
If your goal is simply to get smooth curves through those points, you can just do spline interpolation:
x1 = [3.34, 3.93, 3.65, 2.50, 1];
x2 = [0.19, 0.36, 0.64, 0.84, 1];
y = [0.10, 0.20, 0.40, 0.60, 1];
yf=linspace(0.1,1,50);
x1f=interp1(y,x1,yf,'spline');
x2f=interp1(y,x2,yf,'spline');
% draw the original coarse curves
plot(y,x1,':'); hold on; grid on
plot(y,x2,':');
% draw the smoothed curves
plot(yf,x1f);
plot(yf,x2f);
Feel free to swap axes if you want the plot facing the other way
If you find the endpoint behavior of 'spline' to be too outrageous, try 'pchip' or 'makima':

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by