我寫的如下
不好意思很亂,這也是我問題想問的地方
其實我是想把很多參數換成a、b、c之類的代號
像是ub=10.414 ktq=11.9*8.854187817*10^-14*0.0259這樣
可是我只要一換掉matlab好像就會判定為是一個新的變數
顯示為無法畫圖,請問版上的大大可以幫我解決疑惑嗎? 謝謝
新手第一次學,版上搜尋了一下好像沒有人有我這個笨問題
不好意思
phib=log(5/1.5*10^4)*0.0249;
subplot(2,1,2);fplot('[11.9*8.854187817*10^-14*(-x/abs(x)*sqrt(2)*0.0259/
(sqrt(11.9*8.854187817*10^-14*0.0259/2/1.602/10^-19/1.5/10^10))*
sqrt(-x/0.0259*sinh(10.414)-(cosh(10.414)-cosh(10.414+x/0.0259)))) ,
1.602*10^-19*5*10^14*sqrt(2*11.9*8.854187817*10^-14*abs(x)/
1.602/10^-19/5/10^14)]',[-0.5394 0.1 -10^-9 1.1*10^-8 ])
grid on
set(gca, 'xtick', [-2*phib -phib 0 ])
set(gca, 'xticklabel', {'-2','-1','0'})
legend('Q_s(\phi _s)' ,'Q_D=Q_s=qN_D W');
title('Q_s&Q_D to \phi_s');
xlabel('\phi_b (\phi_b)');
ylabel('Q_s (C/cm^2)');
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.186
→
10/20 13:48, , 1F
10/20 13:48, 1F