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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:53:48+00:00 2026-05-28T03:53:48+00:00

I have a sequence call it ACGTCCT… . Is there anyway of plotting this

  • 0

I have a sequence call it ACGTCCT.... Is there anyway of plotting this without using stairs? Does anyone know how to make the colourful 2D/3D arrows towards the bottom of the page this: How to plot a gene graph for a DNA sequence say ATGCCGCTGCGC?

in matlab? Other suggestions on the ACGTCCT visualisation are welcome too.

Cheers

  • 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-28T03:53:49+00:00Added an answer on May 28, 2026 at 3:53 am

    The arrow.m submission from FileExchange is what you need. It’s hard to imagine that it’s not built in, but at least this contribution fills the gap nicely. Here is an example using it like in that Q/A you linked to:

    function randomWalk(seq)
    
    n = length(seq);
    
    ptStart = zeros(n, 3);
    ptEnd   = zeros(n, 3);
    
    cols = jet(n);
    
    for i=1:n
        switch seq(i)
            case 'A'
                d = [1 0];
            case 'T'
                d = [-1 0];
            case 'G'
                d = [0 1];
            case 'C'
                d = [0 -1];
        end
    
        ptEnd(i,:) = ptStart(i,:) + [d 1];
        ptStart(i+1,:) = ptEnd(i,:);
    end
    
    rng = [min([ptStart; ptEnd], [], 1); max([ptStart; ptEnd], [], 1)];
    axis(rng(:))
    for i=1:n
        arrow(ptStart(i,:), ptEnd(i,:), 'BaseAngle', 90,...
                                        'TipAngle',  15,...
                                        'Length',    30,...
                                        'CrossDir', [1 1 0],...
                                        'EdgeColor', cols(i,:),...
                                        'FaceColor', cols(i,:));
    end
    
    axis equal
    view([45 15])
    
    >> randomWalk('ATGCGTCGTAACGT')
    

    enter image description here

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

Sidebar

Related Questions

I was wondering if this was possible... I have a sequence of variables that
I have some types with a sequence inside, which does restrict the order of
I have a stacked sequence which runs 2 different tests continuously. Lets call them
I have a postgres table like this: CREATE SEQUENCE seq; CREATE TABLE tbl (id
Possible Duplicates: Undefined Behavior and Sequence Points Order of function call I have found
In the Fibonacci sequence, I have seen conventional implementations which recursively call the same
I have a bunch of classes that each have a property called Sequence. This
I have a sequence with a structure like this: (def date-sequence [[20101121 10] [20101120
I have a list of 10 methods. Now I want to call this methods
I have used SDL_Mixer before, and it does this job correctly: when i play

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.