ในบางครั้งขณะที่เรารัน matlab ผ่าน command line อาจเจอปัญหา error อันเนื่องมาจาก license
วิธีแก้ให้ใส่ option -c แล้วตามด้วย path ของ activation file ตัวอย่างเช่น สมมติว่าเราต้องการ execute ไฟล์ชื่อ test.m สามารถทำได้โดย
Note: ปกติเมื่อเราทำการ install matlab ใน ubuntu ไฟล์ executable matlab จะถูกเก็บไว้ที่ไดเรคทอรี่ /usr/local/MATLAB/R2012a/
Error: Activation cannot proceed. You may either: 1. Set an X11 display, and restart the activation process 2. Use the silent activation feature 3. Activate using the license center
วิธีแก้ให้ใส่ option -c แล้วตามด้วย path ของ activation file ตัวอย่างเช่น สมมติว่าเราต้องการ execute ไฟล์ชื่อ test.m สามารถทำได้โดย
matlab -c lic_standalone.dat -nodisplay < test.m
Note: ปกติเมื่อเราทำการ install matlab ใน ubuntu ไฟล์ executable matlab จะถูกเก็บไว้ที่ไดเรคทอรี่ /usr/local/MATLAB/R2012a/
No comments:
Post a Comment