[問題] 有關用M檔案跑程式的結果已回收
請問ㄧ下:
最近小試一個if的語法,來判斷2^5或5^2誰比較大
以下是我的code
---------------------------------------------------------------------
clc;
clear;
C1=2^5;
C2=5^2;
if(C1>C2)
disp('2^5>5^2');
end
if(C2>C1)
disp('5^2>2^5');
end
我寫完後,按F5時,跳出一個file is not found in the current directory or
on the matlab path....
視窗有change directory和add to path選項,我都選過,不過都沒有用
跑出來再command window裡出現ans=0的結果...
請問是哪裡設定出了問題嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.40.64.247
→
07/15 19:45, , 1F
07/15 19:45, 1F
推
07/15 19:49, , 2F
07/15 19:49, 2F
→
07/15 19:49, , 3F
07/15 19:49, 3F
→
07/15 19:50, , 4F
07/15 19:50, 4F
→
07/15 20:11, , 5F
07/15 20:11, 5F
→
07/15 20:22, , 6F
07/15 20:22, 6F
推
07/15 20:52, , 7F
07/15 20:52, 7F
→
07/15 20:53, , 8F
07/15 20:53, 8F
→
07/15 21:24, , 9F
07/15 21:24, 9F
→
07/15 21:25, , 10F
07/15 21:25, 10F
推
07/15 21:32, , 11F
07/15 21:32, 11F
推
07/15 21:37, , 12F
07/15 21:37, 12F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):