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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:48:22+00:00 2026-05-24T04:48:22+00:00

i want to plot a 3d graph using surf in matlab. i know how

  • 0

i want to plot a 3d graph using surf in matlab. i know how to plot it just using surf:

k = 5;
n = 2^k-1;
[x,y,z] = sphere(n);
c = hadamard(2^k);
p=surf(x,y,z);

but i want to plot this in realtime, and i want to update the values using set.
I tired:set(p,"XData",Xvalue,"YData",Yvalue,"ZData",Zvalue); but its giving me errors. has anyone plotted using surf in realtime?

  • 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-24T04:48:23+00:00Added an answer on May 24, 2026 at 4:48 am

    1) you can use the linkdata command or toolbar button (or even Tools -> Link from the plot window)

    2) programmatically: you need to call the command ‘refreshdata’ to signal that new data is available:

    %% Define the data
    t=linspace(0,2*pi,40);
    y=sin(t);
    
    %% Create the plot and set teh datasources
    h=plot(t,y)
    set(h,'YDataSource','y')
    set(h,'XDataSource','t')
    
    %% Now update the data and the plot
    pause
    y=sin(2*t);
    refreshdata
    

    This shows it for the plot, but expect surf will behave the same.

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

Sidebar

Related Questions

I'm (trying to) using JSON with PHP. I want to plot a graph using
I want to plot a 3d graph in matlab By graph I mean in
i would like to plot the following three functions in MATLAB using ezplot() but
I'm trying to plot a graph in matplotlib using numpy and meshgrid. I want
i currently have highcharts realtime graph working on a browser (e.g. http://www.highcharts.com/demo/dynamic-update ), but
I want to plot a bar graph in Matlab, where some of the items
I'm new to Octave/Matlab and I want to plot a 3D-Graph. I was able
I want to use core-plot for drawing line graph dynamically. data won't come at
want to know why String behaves like value type while using ==. String s1
Okay to get started I am using Jquery-Flot to plot a radial graph I

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.