MATLAB Answers

0

How can I go from a 3D line plot to HTML using MATLAB?

Asked by Margaret Redford on 6 Apr 2017
Latest activity Edited by Walter Roberson
on 9 Apr 2017
I have a 3D line composed of a set of (x,y,z) coordinates that I would like to plot and export as HTML (or an intermediate that can be simply/efficiently be converted into HTML). I found an exciting and promising potential solution here: https://www.mathworks.com/matlabcentral/fileexchange/27333-create-3d-interactive-html-file-from-matlab-surface using a program off the fileshare called Javaview. Unfortunately, while the program output is exactly what I am looking for, the input is not of the appropriate type. It calls for a surface (z = f(x,y)) instead of a line (where in this case there's a unique (x,y) for each z instead of the other way around. It then writes this to an STL file and ultimately a javaview file + HTML.
MY QUESTION: can this be modified to suit a line? Is there a way to construct an STL file from a line (perhaps if it's given a thickness for dimensional purposes) using matlab? Or another way of going from 3D line graph to interactive graph HTML using MATLAB I am not aware of?
Any and all solutions/ ideas welcome!

  0 Comments

Sign in to comment.

0 Answers