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 8643527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:04:03+00:00 2026-06-12T12:04:03+00:00

Could someone advice me how to merge a vector of ‘single’ and a vector

  • 0

Could someone advice me how to merge a vector of ‘single’ and a vector of ‘int8’ in Matlab?

In details:

Tektronix AWG waveform format: each wave point = data and markers. data = single precision float, markers = byte. So each point is 5 bytes. I have these vectors in matlab. Each up to 32Mpoints. How to merge them fast?
The only that I have for now:

signal, markers

fsingle = fopen('temp.tmp','w');
fwrite(fsingle, signal, 'single');
fclose(fsingle);
f8 = fopen('temp.tmp','r');
b = fread(f8, [4 Inf],'int8');
fclose(f8);
f8 = fopen('output.wfm','w');
fwrite(f8, [b, markers]', 'int8');
fclose(f8);

This works. How can I execute lines 1 to 6 without writing on disk? It seems there are no pointers to variables in matlab…

Will be thankful for every idea,

Andrew

  • 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-06-12T12:04:05+00:00Added an answer on June 12, 2026 at 12:04 pm

    You probably want to use typecast:

    Convert data types without changing underlying data

    Basically this is almost like a pointer. You can look at your array of singles as bytes. Then you can Concatenate it with other byte arrays.

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

Sidebar

Related Questions

Could someone give me some advice or a snippet of code that would show
Could someone please give me some advice/ideas about how to deal with the situations
Could someone prove to me that the advice given here (copied below) regarding removing
I was hoping someone could offer me advice, Im looking to build a website,
Could someone give me some advice on how I can deploy the Android app
Hello i was wondering if someone could give me a bit of advice on
I'd like if someone could give me some advice on creating this script, which
Could someone give me some advice why I have a memory leak associated to
Could someone offer up some advice or point out some blogs/articles that could help
Could someone advice me on what approach to take when writing C# constructors? In

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.