フィルターのクリア

plot curve in matlab

2 ビュー (過去 30 日間)
saman ahmadi
saman ahmadi 2020 年 9 月 14 日
回答済み: Walter Roberson 2020 年 9 月 14 日
Hi. how can i plot below equation, (qa vs h).
thank you
h=(1220908434898033726941095945343859/137540090124762890062392297783296 - (((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)/(2*((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 + (((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^2 - (((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)^3)^(1/2) - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^(1/3)) - (3^(1/2)*((((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)/((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 + (((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^2 - (((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)^3)^(1/2) - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^(1/3) - ((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 + (((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^2 - (((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)^3)^(1/2) - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^(1/3))*1i)/2 - ((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 + (((1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125*cos(qa))/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624 - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^2 - (((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^2/9 - (35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/65382291675787666836113582632131053390122134309537383486324736 + 8672300805488615626514298725649155738733727064619700329244267215815/4184466667250410677511269288456387416967816595810392543124783104)^3)^(1/2) - ((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296)^3/27 + (((35164071972321196364293514418484081841779784041842476808911880635*cos(qa))/21794097225262555612037860877377017796707378103179127828774912 - 8672300805488615626514298725649155738733727064619700329244267215815/1394822222416803559170423096152129138989272198603464181041594368)*((337154630557615804716801703060335*cos(qa))/19648584303537555723198899683328 - 3662725304694101180823287836031577/137540090124762890062392297783296))/6 - 1975131977464284593799922942265159165740094841607830863054523132048199753900147209696006689593125/252592461065476274697287265362762891970382080814576095078881415719943281170653751566741274624)^(1/3)/2 - (112384876852538601572267234353445*cos(qa))/19648584303537555723198899683328)^(1/2)

回答 (2 件)

KSSV
KSSV 2020 年 9 月 14 日
編集済み: KSSV 2020 年 9 月 14 日
Define qa first....and then use your formula.
Example:
m = 100 ;
qa= linspace(0,2*pi,m) ; % give your range here
h = cos(qa)+cos(qa).^2 ; % your curve definition
plot(qa,h)

Walter Roberson
Walter Roberson 2020 年 9 月 14 日
You need to separate the real and imaginary components. For the ranges I checked, the real components were quite small, but the imaginary components were quite variable.
plotting qa vs h is not really feasible, but you could plot h vs qa
The function is quite high frequency, so you will need to plot over a very narrow range to make any sense of the plot.

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by