How to change the datapoints(extracted from a curve) into an array?
1 次查看(过去 30 天)
显示 更早的评论
Hey
Actually, I plotted a curve in matlab and extracted all the data points. I wanted to convert them into an array for further use but I didn't find any solution. please help
for example like this:
r1 =
1.0e-07 *
Columns 1 through 12
0.0010 0.0020 0.0030 0.0040 0.0050 0.0060 0.0070 0.0080 0.0090 0.0100 0.0110 0.0120
Columns 13 through 24
0.0130 0.0140 0.0150 0.0160 0.0170 0.0180 0.0190 0.0200 0.0210 0.0220 0.0230 0.0240
and I have around 600 datapoints for a particular value. So it will be very time consuming to write it manually.
I will be very thankful if someone can look into this problem.
0 个评论
回答(1 个)
Star Strider
2021-3-3
If you plotted the curve, you should already have all the data necessary to do the plot.
What exactly did you plot, and how did you plot it? (Posting the relevant data and code would help.)
If you want to get the independent variable value from values of one or more dependent variable values, the interp1 function (or its friends) can likely make this easier.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!