| 5 | 1/1 | 返回列表 |
| 查看: 1782 | 回復(fù): 12 | ||||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||||
hzsh2009銅蟲 (小有名氣)
|
[交流]
matlab Undefined function or method '~' for input arguments of type 'char'. 已有2人參與
|
|||
| RT, 為什么有的時(shí)候輸入一個(gè)function它不會(huì)運(yùn)行而是會(huì)跳出 Undefined function or method '~' for input arguments of type 'char'? 謝謝! |
銅蟲 (小有名氣)
至尊木蟲 (著名寫手)
驃騎將軍

銅蟲 (小有名氣)
送鮮花一朵 |
能稍微解釋下什么是char數(shù)組嗎? 代碼很多,比如, 這個(gè)顯示世界地圖的。 有人說是因?yàn)槲覜]裝Mapping tool。對(duì)嗎?如何查看自己matlab有沒裝呢?如果是沒裝那從哪可以裝呢?謝謝! ax = worldmap('World'); % setm(ax, 'Origin', [0 180 0]) land = shaperead('landareas', 'UseGeoCoords', true); geoshow(ax, land, 'FaceColor', [0.5 0.7 0.5]) lakes = shaperead('worldlakes', 'UseGeoCoords', true); geoshow(lakes, 'FaceColor', 'blue') rivers = shaperead('worldrivers', 'UseGeoCoords', true); geoshow(rivers, 'Color', 'blue') cities = shaperead('worldcities', 'UseGeoCoords', true); geoshow(cities, 'Marker', '.', 'Color', 'red') title('世界地圖','FontSize',14,'FontWeight','Bold'); |
榮譽(yù)版主 (著名寫手)
彩色掛圖
![]() |
專家經(jīng)驗(yàn): +2 |
|
lz問的比較多,建議: 1、下一個(gè)新的,完整的matlab重新安裝 2、建議出問題時(shí)多看看matlab的幫助,要全記住除非專門整這個(gè)的。 3、判斷是不是字符用ischar函數(shù) 4、Error: Function definitions are not permitted in this context一般出現(xiàn)在用script又用function,一般不讓這么用,可以給前面的部分加上function main...end 也可以單獨(dú)建個(gè)函數(shù)文件。 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿食品科學(xué)與工程083200求調(diào)劑 +3 | XQTJZ 2026-03-30 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 材料求調(diào)劑 一志愿哈工大總分298分,前三科223分 +10 | dongfang59 2026-03-27 | 10/500 |
|
|
[考研] 085602化工求調(diào)劑(331分) +8 | 111@127 2026-03-30 | 8/400 |
|
|
[考研] 285求調(diào)劑 +6 | AZMK 2026-03-29 | 9/450 |
|
|
[考研] 一志愿鄭大材料工程290求調(diào)劑 +11 | Youth_ 2026-03-30 | 11/550 |
|
|
[考研] 學(xué)碩274求調(diào)劑 +10 | Li李魚 2026-03-26 | 10/500 |
|
|
[考研] 359求調(diào)劑 +5 | 王了個(gè)楠 2026-03-25 | 5/250 |
|
|
[考研] 327求調(diào)劑 +5 | 小卡不卡. 2026-03-29 | 5/250 |
|
|
[考研] 289求調(diào)劑 +16 | 新時(shí)代材料 2026-03-27 | 16/800 |
|
|
[考研] 287求調(diào)劑 +14 | land xuxu 2026-03-26 | 14/700 |
|
|
[考研] 0703 化學(xué) 求調(diào)劑,一志愿山東大學(xué) 342 分 +7 | Shern—- 2026-03-28 | 7/350 |
|
|
[考研] 085701求調(diào)劑初試286分 +5 | secret0328 2026-03-28 | 5/250 |
|
|
[考研] 348求調(diào)劑 +6 | 小懶蟲不懶了 2026-03-28 | 6/300 |
|
|
[考研] 295求調(diào)劑 +5 | wei-5 2026-03-26 | 5/250 |
|
|
[考研] 315求調(diào)劑 +4 | akie... 2026-03-28 | 5/250 |
|
|
[考研] 299求調(diào)劑 +7 | 嗯嗯嗯嗯2 2026-03-27 | 7/350 |
|
|
[考研] 0856,材料與化工321分求調(diào)劑 +12 | 大饞小子 2026-03-27 | 13/650 |
|
|
[有機(jī)交流]
高溫高壓反應(yīng)求助
10+4
|
chibby 2026-03-25 | 4/200 |
|
|
[考研] 085600,材料與化工321分,求調(diào)劑 +9 | 大饞小子 2026-03-27 | 9/450 |
|
|
[考研] 351求調(diào)劑 +4 | 麥克阿磊 2026-03-24 | 4/200 |
|