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

  • SEARCH
  • Home
  • 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 631055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:55:22+00:00 2026-05-13T19:55:22+00:00

I am using MATLAB to process data from files. I am writing a program

  • 0

I am using MATLAB to process data from files. I am writing a program that takes input from the user and then locates the particular files in the directory graphing them. Files are named:

{name}U{rate}

{name} is a string representing the name of the computer. {rate} is a number. Here is my code:

%# get user to input name and rate
NET_NAME = input('Enter the NET_NAME of the files: ', 's');
rate = input('Enter the rate of the files: ');

U = strcat(NET_NAME, 'U', rate)
load U;

Ux = U(:,1);
Uy = U(:,2);

There are currently two problems:

  1. When I do the strcat with say ‘hello’, ‘U’, and rate is 50, U will store ‘helloU2’ – how can I get strcat to append {rate} properly?

  2. The load line – how do I dereference U so load tries to load the string stored in U?

Many thanks!

  • 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-13T19:55:22+00:00Added an answer on May 13, 2026 at 7:55 pm

    Mikhail’s comment above solves your immediate problem.

    A more user-friendly way of selecting a file:

    [fileName,filePath] = uigetfile('*', 'Select data file', '.');
    if filePath==0, error('None selected!'); end
    U = load( fullfile(filePath,fileName) );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 504k
  • Answers 505k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A Out of Memory error message is not the server… May 16, 2026 at 3:16 pm
  • Editorial Team
    Editorial Team added an answer Try not to repeat yourself where possible and avoid unneeded… May 16, 2026 at 3:16 pm
  • Editorial Team
    Editorial Team added an answer In a nutshell: StackOverflow gathers the keywords from a question,… May 16, 2026 at 3:16 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have some data generated in MATLAB that I want to process using Perl.
I'm writing a java package that will be called by another language (matlab). If
I'm using MATLAB's deployment tool to compile a simple project which uses a mex
I see in the MATLAB help ( matlab -h ) that I can use
I am using regionprop function in matlab to get MajorAxisLength of an image. I
I've got a GUI in MATLAB with a set of axes pre-placed. I'm using
In MATLAB, I have an array of latitude and longitude pairs that represents locations
I want to have a waitbar for an operation that takes quite a while.
I have a MATLAB class which contains a reference to a java object classdef
I am trying to write a matlab mex function which uses libhdf5; My Linux

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.