עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה עם uigetfile ב-Matlab R2007a

Featured Replies

פורסם

שלום,

יש לי בעיה עם הפונקציה uigetfile ב- Matlab R2007b

אני כותב:


a=uigetfile('*.txt','title','c:\nvidia\')

ומקבל:



??? Java exception occurred:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 5

at java.util.Vector.get(Unknown Source)

at javax.swing.plaf.basic.BasicDirectoryModel.getElementAt(Unknown Source)

at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)

at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)

at javax.swing.plaf.basic.BasicListUI.getCellBounds(Unknown Source)

at javax.swing.JList.getCellBounds(Unknown Source)

at javax.swing.JList.ensureIndexIsVisible(Unknown Source)

at sun.swing.FilePane.ensureIndexIsVisible(Unknown Source)

at sun.swing.FilePane.doDirectoryChanged(Unknown Source)

at sun.swing.FilePane.propertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.awt.Component.firePropertyChange(Unknown Source)

at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)

at com.mathworks.mwswing.MJFileChooser.setCurrentDirectory(MJFileChooser.java:167)

at javax.swing.JFileChooser.setSelectedFile(Unknown Source)

at com.mathworks.mwswing.MJFileChooserPerPlatform.setSelectedFile(MJFileChooserPerPlatform.java:377)


Error in ==> AbstractFileDialog.AbstractFileDialog>AbstractFileDialog.setPeerCurrentFile at 172
obj.Peer.setSelectedFile(java.io.File([aPathName, filesep], aFileName));

Error in ==> UiFileOpenDialog.UiFileOpenDialog>UiFileOpenDialog.show at 40
setPeerCurrentFile(obj);

Error in ==> uitools\private\uigetputfile_helper at 46
ufd.show();

Error in ==> uigetfile at 125
[filename, pathname, filterindex] = uigetputfile_helper(0, varargin{:});

האם אני עושה משהו לא נכון או שמדובר בבאג ב-Matlab? אני משתמש בגרסאת 64bit בוינדוס ויסטה פרמיום 64.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.