Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 759979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:39:43+00:00 2026-05-14T15:39:43+00:00

I created a GUI and used uiimport to import a dataset into matlab workspace,

  • 0

I created a GUI and used uiimport to import a dataset into matlab workspace, I would like to pass this imported data to another function in matlab…How do I pass this imported dataset into another function….I tried doing diz…but it couldnt pick diz….it doesnt pick the data on the matlab workspace….any ideas??

[file_input, pathname] = uigetfile( ...
{'*.txt', 'Text (*.txt)'; ...
'*.xls', 'Excel (*.xls)'; ...
'*.*', 'All Files (*.*)'}, ...
'Select files');

uiimport(file_input);
M = dlmread(file_input);
X = freed(M);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:39:43+00:00Added an answer on May 14, 2026 at 3:39 pm

    In your script you have three ways to read the file. Choose one on them depending on your file format. But first I would combine file name with the path:

    file_input = fullfile(pathname,file_input);
    

    I wouldn’t use UIIMPORT in a script, since user can change way to read the data, and variable name depends on file name and user.

    With DLMREAD you can only read numerical data from the file. You can also skip some number of rows or columns with

    M = dlmread(file_input,'\t',1,1);
    

    skipping the first row and one column on the left.
    Or you can define a range in kind of Excel style. See the DLMREAD documentation for more details.

    The filename you pass to DLMREAD must be a string. Don’t pass a file handle or any data. You will get “Filename must be a string”, if it’s not a string. Easy.

    FREAD reads data from a binary file. See the documentation if you really have to do it.

    There are many other functions to read the data from file. If you still have problems, show us an example of your file format, so we can suggest the best way to read it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an automatically created (with wsdl.exe and the GUI-based Add web reference command)
I currently have a class and I'm trying to create an easy GUI to
I am looking to create a very lightweight GUI front end in Windows. It's
I want to create a very simple HTML/AJAX based GUI for a Python program.
When using phpMyAdmin or the MySQL GUI Tools, whenever I create an InnoDB table,
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user
I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I
I created a single page (with code behind .vb) and created Public intFileID As
I created an Interop user control in VS2005. When the user control is shown
I created a simple .NET windows application in Visual Studio 2005 and on just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.