How to change the datapoints(extracted from a curve) into an array?

1 Ansicht (letzte 30 Tage)
pooja sudha
pooja sudha am 3 Mär. 2021
Kommentiert: pooja sudha am 4 Mär. 2021
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.

Antworten (1)

Star Strider
Star Strider am 3 Mär. 2021
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.
  1 Kommentar
pooja sudha
pooja sudha am 4 Mär. 2021
Actually I have two equation e.g. Y= x^2+x
and Y= sqrt(x^3+h)
So, I have collected all the data points from first equation and now I want to find h. To find h, I have to write the data points in array form.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by