Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.6K Views
|
7 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Help fitting and selecting data?

Posted 3 years ago

Kindly find the data:
https://drive.google.com/file/d/1Zw_GBnhFYbEglEKzTXnCv4o5xEMMT9n1/view?usp=sharing

I want to fit my data. After using drop and select, I am getting blank {}. I want to fit my data of XZ Plane and potential. Kindly help, as soon as possible

7 Replies
Posted 3 years ago

Something like this?

(* MinMax for x, y, z, p *)
MinMax /@ Transpose@DataxyzStein
(* {{-0.495, 0.495}, {-0.495, 0.495}, {-0.305, 0.305}, {0.299106, 0.998006}} *)

(* Select positive x values *)
DataxzSteinPosX = Select[DataxzStein, #[[1]] >= 0 &]

MinMax /@ Transpose@DataxzSteinPosX
(* {{0.005, 0.495}, {-0.305, 0.305}, {0.302262, 0.998001}} *)
POSTED BY: Rohit Namjoshi

I mean to say. I want to command Mathematica that Please select data points with a range from ( -0.32 to +0.32) for x column(1st), a range from ( -0.22 to +0.22) for z column (3rd) along with its corresponding potential data in the 4th columns. Then I will use those data points for fitting.

Posted 3 years ago
POSTED BY: Rohit Namjoshi
Posted 3 years ago
POSTED BY: Rohit Namjoshi
Posted 3 years ago

Hi Soumyaranjan,

This is an empty list, so all of the data is being filtered out, so DataxzStein is empty.

Select[DataxyzStein, -10^-7 <= #[[2]] <= 10^-7 &]

There are four columns in the data which columns are x, y, z? What is the fourth column?

POSTED BY: Rohit Namjoshi

Hi Rohit !! 1st 3 columns are x, y and z, respectively. The 4t one is the Electric Potential which is a function of x, y and z. Since I want to fit in the XZ plane, so I want to drop the y column.

Please help me to fit those data. Thank you for your time and consideration.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard