±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 3135  |  »Ø¸´: 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µÄ»ØÌû

°¢±ø½«ÐÄ

ľ³æ (ÕýʽдÊÖ)

Ç峿

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

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

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

°¢±ø½«ÐÄ

ľ³æ (ÕýʽдÊÖ)

Ç峿

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

[ ·¢×ÔСľ³æ¿Í»§¶Ë ]
ѧÊõÀëÎÒÒ£Ô¶Âð
2Â¥2014-06-27 15:56:00
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢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µÄ»ØÌû

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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 0703»¯Ñ§ +18 ÄÝÄÝninicgb 2026-04-04 19/950 2026-04-06 12:51 by zllcz
[¿¼ÑÐ] Çóµ÷¼Á +5 wos666 2026-04-03 5/250 2026-04-06 10:13 by À¶ÔÆË¼Óê
[¿¼ÑÐ] ¸´ÊÔµ÷¼Á +5 asdasdassda 2026-04-05 5/250 2026-04-06 09:32 by dongzh2009
[¿¼ÑÐ] 306·Ö²ÄÁÏÓ뻯¹¤Çóµ÷¼Á +7 Àè°ÉÀ²À²ÄãºÜÓÐà 2026-04-03 7/350 2026-04-05 17:18 by Hdyxbekcb
[¿¼ÑÐ] 359Çóµ÷¼Á22408 +3 123456789qw 2026-03-31 3/150 2026-04-05 10:09 by zhq0425
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +12 Ò»ÑùYWY 2026-04-04 12/600 2026-04-05 08:24 by 544594351
[¿¼ÑÐ] ²ÄÁÏר˶322·Ö +11 ¹þ¹þ¹þºðºðºð¹þ 2026-04-02 11/550 2026-04-04 23:37 by ÓÀ×ÖºÅ
[¿¼ÑÐ] 321Çóµ÷¼Á +13 ÈÏÕæÇóÉÏѧ 2026-04-02 13/650 2026-04-04 18:23 by macy2011
[¿¼ÑÐ] 334Çóµ÷¼Á +8 ÔøÑöÖ® 2026-04-03 8/400 2026-04-04 11:16 by w_xuqing
[¿¼ÑÐ] Çóµ÷¼Á +8 akdhjs 2026-04-03 8/400 2026-04-03 18:17 by ´÷άING
[¿¼ÑÐ] Çóµ÷¼Á +4 15064154688 2026-04-03 5/250 2026-04-03 15:07 by zrongyan
[¿¼ÑÐ] 326·ÖÇóµ÷¼Á +3 ÓÚÊǺõÄØ 2026-04-01 5/250 2026-04-03 14:23 by ÓÚÊǺõÄØ
[¿¼ÑÐ] 366Çóµ÷¼Á +7 sbdnd 2026-04-03 7/350 2026-04-03 12:40 by cymywx
[¿¼ÑÐ] 320Çóµ÷¼Á +3 ũҵ¹¤³ÌÓëÐÅÏ¢¼ 2026-04-03 3/150 2026-04-03 11:40 by ÍÁľ˶ʿÕÐÉú
[¿¼ÑÐ] Ò»Ö¾Ô¸ÏÃÃÅ´óѧ²ÄÁϹ¤³Ìר˶354ÕÒµ÷¼Á£¡£¡£¡ +8 ±´ß±µ±µ 2026-03-30 8/400 2026-04-03 09:41 by hypershenger
[¿¼ÑÐ] 318Çóµ÷¼Á +3 óÆÐÐÖÂÔ¶. 2026-03-31 4/200 2026-04-02 15:56 by Jaylen.
[¿¼ÑÐ] ʳƷѧ˶362Çóµ÷¼Á +3 xuanxianxian 2026-04-01 3/150 2026-04-01 21:05 by °¡Àî999
[¿¼ÑÐ] 085600£¬321·ÖÇóµ÷¼Á +13 ´ó²öС×Ó 2026-03-31 13/650 2026-04-01 12:35 by chemdavid
[¿¼ÑÐ] ¡¾µ÷¼Á¡¿Ò»Ö¾Ô¸ÏôóÉúÎïÓëÒ½Ò©µ÷¼Á +3 EchoϺÃ× 2026-03-31 3/150 2026-04-01 08:40 by JourneyLucky
[¿¼ÑÐ] ¹þ¶û±õ¹¤Òµ´óѧ²ÄÁÏÓ뻯¹¤×¨Ë¶378Çóµ÷¼Á +3 Ëþ±ÈÎÚ˹ 2026-03-30 3/150 2026-03-30 22:55 by Î޼ʵIJÝÔ­
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û