±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 3154  |  »Ø¸´: 10
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

17_ÀîÉÍ

гæ (³õÈëÎÄ̳)

[ÇóÖú] matlabÇúÏßÄâºÏ¼°ÐÞÕý ÒÑÓÐ2È˲ÎÓë

±¾ÈËÐÂÊÖ£¬»¹Î´¶Ômatlab½øÐÐÉîÈëѧϰ£¬½ô¼±ÇóÖú~
ÒÑÖª£ºx=[8.9 11.7 13.2 13.4 14 14.2 14 10.7 21.671 23.487 20.902 16.507]£»
    y=[17.698 17.698 27.365 27.365 37.031 37.031 27.365 17.698 66.03 75.696 56.364 37.031]¡£
ÇëÎʸÃÈçºÎÓÃmatlabÄâºÏ³ö¶àÏîʽ·½³Ìy=f£¨x£©£¬È»ºóÈçºÎ¶Ô·½³Ì½øÐÐÐÞÕý£¿
»Ø¸´´ËÂ¥

» ÊÕ¼±¾ÌûµÄÌÔÌûר¼­ÍƼö

³ÌÐò

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

17_ÀîÉÍ

гæ (³õÈëÎÄ̳)

ÒýÓûØÌû:
2Â¥: Originally posted by °¢±ø½«ÐÄ at 2014-06-27 15:56:00
matlabÀïÃæÓÐÑ¡ÏîÀ´ÄâºÏµÄ£¬¸ß˹ÄâºÏ£¬¶àÏîʽÄâºÏʲôµÄ¶¼ÓУ¬Äã°Ù¶È¾Í¿ÉÒÔ¿´µ½µÄ¡£

ÄúºÃ£¡Ð»Ð»Äú¹Ø×¢ÎÒµÄÌû×Ó£¬ÄâºÏº¯ÊýÇó³öÀ´ÒÔºó£¬Ó¦¸ÃÔõô½øÐÐÐÞÕý£¬ÄúÖªµÀÂð£¿
3Â¥2014-06-27 17:13:33
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 11 ¸ö»Ø´ð

°¢±ø½«ÐÄ

ľ³æ (ÕýʽдÊÖ)

Ç峿

matlabÀïÃæÓÐÑ¡ÏîÀ´ÄâºÏµÄ£¬¸ß˹ÄâºÏ£¬¶àÏîʽÄâºÏʲôµÄ¶¼ÓУ¬Äã°Ù¶È¾Í¿ÉÒÔ¿´µ½µÄ¡£

[ ·¢×ÔСľ³æ¿Í»§¶Ë ]
ѧÊõÀëÎÒÒ£Ô¶Âð
2Â¥2014-06-27 15:56:00
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

°¢±ø½«ÐÄ

ľ³æ (ÕýʽдÊÖ)

Ç峿

ÒýÓûØÌû:
3Â¥: Originally posted by 17_ÀîÉÍ at 2014-06-27 17:13:33
ÄúºÃ£¡Ð»Ð»Äú¹Ø×¢ÎÒµÄÌû×Ó£¬ÄâºÏº¯ÊýÇó³öÀ´ÒÔºó£¬Ó¦¸ÃÔõô½øÐÐÐÞÕý£¬ÄúÖªµÀÂð£¿...

ÎÒ»¹Ã»ÓÐ×Ðϸ¿´¹ýÕâ·½ÃæµÄ¶«Î÷£¬ÓÐÎÄÏ××ÊÁÏÂð£¿ÎªºÎÒªÐÞÕýÄØ£¬ÄâºÏ²»¾ÍÊÇÐÞÕýÂð

[ ·¢×ÔСľ³æ¿Í»§¶Ë ]
ѧÊõÀëÎÒÒ£Ô¶Âð
4Â¥2014-06-27 20:36:36
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

cooooldog

Ìú¸Ëľ³æ (ÖøÃûдÊÖ)

ส็็็

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
17_ÀîÉÍ: ½ð±Ò+1, ¡ïÓаïÖú 2014-06-29 14:03:46
Matlab²»ÊǺÜÊ죬ÎÒÓÃgnuplot+CTeXÄâºÏÁËһϣ¬´ÕºÏ×Å¿´¿´°É£º

´úÂ룺
CODE:
\documentclass[border=10pt]{standalone}
\usepackage{siunitx}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{pgfplotstable}
\usepackage{filecontents}
\begin{filecontents*}{myData.dat}
X     Y
8.900        17.698
11.700        17.698
13.200        27.365
13.400        27.365
14.000        37.031
14.200        37.031
14.000        27.365
10.700        17.698
21.671        66.030
23.487        75.696
20.902        56.364
16.507        37.031
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\pgfplotsset{
width=10cm,
legend style={font=\scriptsize}
}
\begin{axis}[%
xlabel=$x$,
ylabel=$y$,
ymin=0,
xmin=0,
scaled y ticks=base 10:0,
legend cell align = left,
legend pos = north west
]
\addplot[only marks] table {mydata.dat};
\addlegendentry{scatter plot};
\addplot+[no markers,red] table [y={create col/linear regression={y=Y}}]{myData.dat};
\addlegendentry{%
Linear regression:  $y=\pgfmathprintnumber{\pgfplotstableregressiona} x
\pgfmathprintnumber[print sign]{\pgfplotstableregressionb}$};
% polynomial fit
\addplot [no markers, blue] gnuplot [raw gnuplot] { % allows arbitrary gnuplot commands
f(x) = a*x**2+b*x+c;     % Define the function to fit
a=10;b=10; c=10;         % Set reasonable starting values here
fit f(x) 'myData.dat' u 1:2 via a,b,c; % Select the file, starts at col 1 and two variables
plot [x=0:28] f(x);    % Specify the range to plot
set print "parameters.dat";  % Open a file to save the parameters
print a, b, c;                  % Write the parameters to file
};
\addlegendentry{\pgfplotstableread{parameters.dat}\parameters % Open the file Gnuplot wrote
\pgfplotstablegetelem{0}{0}\of\parameters \pgfmathsetmacro\paramA{\pgfplotsretval} % Get first element, save into \paramA
\pgfplotstablegetelem{0}{1}\of\parameters \pgfmathsetmacro\paramB{\pgfplotsretval}
\pgfplotstablegetelem{0}{2}\of\parameters \pgfmathsetmacro\paramC{\pgfplotsretval}
polynomial:$y=\pgfmathprintnumber{\paramA} x^2 \pgfmathprintnumber[print sign]{\paramB} x \pgfmathprintnumber[print sign]{\paramC}$
}
\end{axis}
\end{tikzpicture}
\end{document}

matlabÇúÏßÄâºÏ¼°ÐÞÕý
2014-06-27_21-50-07.png

ส็็็็็็็็็็็็็็็็็็็็
5Â¥2014-06-27 21:50:27
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] ³õÊÔ301£¬´úÂë085701»·¾³¹¤³Ì£¬±¾Ë¶Ò»Ö£¬ËÄÁù¼¶Òѹý£¬ÓжþÇøÒ»×÷£¬¹²·¢±í5ƪÂÛÎÄ +10 axibli 2026-04-01 11/550 2026-04-06 22:39 by guanxin1001
[¿¼ÑÐ] ÉúÎïѧ308·ÖÇóµ÷¼Á£¨Ò»Ö¾Ô¸»ª¶«Ê¦´ó£© +9 ÏàÐűػá¹ââÍòÕ 2026-04-06 12/600 2026-04-06 21:49 by 52305043001
[¿¼ÑÐ] 22408 331·ÖÇóµ÷¼Á +4 y__1 2026-04-06 4/200 2026-04-06 17:26 by ÍÁľ˶ʿÕÐÉú
[¿¼ÑÐ] 270·ÖÇóµ÷¼Á +5 maxjxbsk 2026-04-01 5/250 2026-04-06 15:32 by lin-da
[¿¼ÑÐ] Ò»Ö¾Ô¸Î人Àí¹¤´óѧ080200»úе¹¤³Ì308·Ö£¬Çóµ÷¼Á +4 ÖÕ²»ËÆ´Óǰ 2026-04-05 4/200 2026-04-06 11:46 by ¿¼ÑÐѧУÕеãÈË
[¿¼ÑÐ] ÇóÖú071001µ÷¼Á£¡£¡£¡ +4 »ÆÊØËÉ 2026-04-05 5/250 2026-04-06 10:55 by 1028907439
[¿¼ÑÐ] 308Çóµ÷¼Á +3 ÖÕ²»ËÆ´Óǰ 2026-04-05 3/150 2026-04-05 22:23 by hemengdong
[¿¼ÑÐ] һ־Ըͬ¼Ã´óѧ323·Ö£¨080500£©Çóµ÷¼Á +8 yikeniu 2026-04-01 8/400 2026-04-05 18:15 by cql1109
[¿¼ÑÐ] 284Çóµ÷¼Á +7 Ðìͬѧ_001 2026-04-04 13/650 2026-04-05 17:19 by yulian1987
[¿¼ÑÐ] 278Çóµ÷¼Á +14 ·¶æÃÄÈ 2026-04-04 15/750 2026-04-04 22:15 by lqwchd
[¿¼ÑÐ] 283·ÖÇóµ÷¼Á +7 СÄô°®Ñ§Ï° 2026-04-03 7/350 2026-04-04 21:51 by hemengdong
[¿¼ÑÐ] 297Çóµ÷¼Á +11 ljy20040718£¡ 2026-04-03 13/650 2026-04-04 09:23 by À´¿´Á÷ÐÇÓê10
[¿¼ÑÐ] 357Çóµ÷¼Á +13 1050389037 2026-04-03 13/650 2026-04-03 22:27 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Çóµ÷¼Á +4 ѹÁ¦??´ó 2026-04-03 4/200 2026-04-03 21:36 by à£à£à£0119
[¿¼ÑÐ] »úеר˶297 +3 Afksy 2026-04-03 3/150 2026-04-03 14:24 by 1753564080
[¿¼ÑÐ] Çóµ÷¼Á +3 ÐÄÏëÊÂ³É¿É 2026-04-03 3/150 2026-04-03 11:22 by wangjy2002
[¿¼ÑÐ] Ò»Ö¾Ô¸aÇø211£¬085601-307·ÖÇóµ÷¼Á +13 µ³¼ÎºÀ 2026-03-31 26/1300 2026-04-03 08:33 by 495374996
[¿¼ÑÐ] 293Çóµ÷¼Á +4 çæçæÀÖ 2026-04-02 4/200 2026-04-02 20:10 by 6781022
[˶²©¼ÒÔ°] ¿¼Ñе÷¼Á +5 ÂæÍÕÄÐÈË 2026-04-01 5/250 2026-04-01 14:28 by syjjj0321
[¿¼ÑÐ] Çó0861½»Í¨ÔËÊäר˶or²ÄÁÏר˶µ÷¼Á +4 ÀÕ²¼ÀÊ@ 2026-03-31 4/200 2026-04-01 09:54 by Ò»Ö»ºÃ¹û×Ó?
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û