Hi everyone,
I am plotting a 3D simulation plot using the plot3 function. Here is the code:
clear all; clc; close all;
addpath(genpath(pwd));
load Data.mat
MarkerSize = 'b-';
for I =1:91
for J = 1:100
plot3(Location(J,1:I),Time(J,1:I),Magn(J,1:I),MarkerSize)
hold on
end
xlim([0 100]);
ylim([0 100]);
zlim([0 1.5]);
xlabel('Location');
ylabel('Time');
zlabel('Magnitude');
grid on;
pause(1);
end
Here:
Location = 100x91 Matrix
Time = 100x91 Matrix
Mag = 100x91 matrix
Essentially, there are 100 locations. Each of these 100 locations has a time history of 91 data points, where each data point corresponds to some magnitude value over time. I want to simulate the data for all 100 locations changing over time. For example, for each iteration, there is a new data point across time.
My problem is this takes a long time to compute. Is there a more elegant way of doing this? Thanks for your time.
0 Comments
Sign in to comment.