±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 3139  |  »Ø¸´: 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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 288Çóµ÷¼Á +8 ûÓдð°¸_ 2026-04-05 8/400 2026-04-06 14:11 by lqwchd
[¿¼ÑÐ] 285Çóµ÷¼Á +3 mapmath 2026-04-06 3/150 2026-04-06 13:53 by ajpv·çÀ×
[¿¼ÑÐ] ÉúÎïѧ308·ÖÇóµ÷¼Á£¨Ò»Ö¾Ô¸»ª¶«Ê¦´ó£© +6 ÏàÐűػá¹ââÍòÕ 2026-04-06 7/350 2026-04-06 11:51 by lijunpoly
[¿¼ÑÐ] 285Çóµ÷¼Á +12 ŶßϺôo 2026-04-04 12/600 2026-04-06 09:48 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷°²½»´ó²ÄÁÏѧ˶£¨Ó¢Ò»Êý¶þ£©347£¬Çóµ÷¼Áµ½¸ß·Ö×Ó/²ÄÁÏÏà¹Ø×¨Òµ +8 zju51 2026-03-31 10/500 2026-04-06 09:03 by ×íÎÌwl
[¿¼ÑÐ] ÉúÎïÓëÒ½Ò©Çóµ÷¼Á +5 heguanhua 2026-04-05 6/300 2026-04-05 22:58 by Hdyxbekcb
[¿¼ÑÐ] Çóµ÷¼ÁÇóµ÷¼Á +8 121. 2026-04-02 8/400 2026-04-05 20:15 by lys0704
[¿¼ÑÐ] 308Çóµ÷¼Á +3 ÖÕ²»ËÆ´Óǰ 2026-04-05 3/150 2026-04-05 20:07 by à£à£à£0119
[¿¼ÑÐ] ¹¤¿ÆÇóµ÷¼Á +15 11ggg 2026-04-03 15/750 2026-04-05 16:24 by zzx2138
[¿¼ÑÐ] 316Çóµ÷¼Á +9 Ä«³½_Orion926 2026-04-04 9/450 2026-04-04 21:35 by lbsjt
[¿¼ÑÐ] 306Çóµ÷¼Á +3 hybÉÏÃû¹¤ 2026-04-02 3/150 2026-04-04 18:12 by ÈÈÇéɳĮ
[¿¼ÑÐ] 0710ÉúÎïѧ336·ÖÇóµ÷¼Á +6 kiyy 2026-04-01 8/400 2026-04-04 10:10 by kiyy
[¿¼ÑÐ] ÎåÒØ´óѧÍÁľ¹¤³ÌÕе÷¼ÁÉú2026 +3 wyutj 2026-03-31 4/200 2026-04-03 18:21 by zengxj_7201
[¿¼ÑÐ] 312 »¯¹¤»òÖÆÒ©µ÷¼Á +8 ССī123 2026-04-02 9/450 2026-04-03 09:12 by zhouxiaoyu
[¿¼ÑÐ] ½»Í¨ÔËÊ俼ÊÔ264·ÖÇ󹤿Ƶ÷¼Á +4 jike777 2026-04-02 4/200 2026-04-02 21:53 by zllcz
[¿¼ÑÐ] Çóµ÷¼ÁÍÆ¼ö +3 ÄÏɽÄÏ@ 2026-04-01 3/150 2026-04-02 12:09 by xiaoranmu
[¿¼ÑÐ] 324Çóµ÷¼Á +5 ÏëÉÏѧÇóµ÷ 2026-04-01 6/300 2026-04-02 10:16 by sanrepian
[¿¼ÑÐ] 292Çóµ÷¼Á +17 ľ³æer12138 2026-04-01 17/850 2026-04-01 21:37 by Æß¶È²»ÐÅÈÎ
[˶²©¼ÒÔ°] ¿¼Ñе÷¼Á +5 ÂæÍÕÄÐÈË 2026-04-01 5/250 2026-04-01 14:28 by syjjj0321
[¿¼ÑÐ] 070300»¯Ñ§×¨Òµ279µ÷¼Á +10 ¹þ¹þ¹þ^_^ 2026-03-31 10/500 2026-03-31 23:13 by liu823948201
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û