How can I export the output data into a ‘*.txt’ file?
Show older comments
Hi,
How can I export the output data into a ‘*.txt’ file?
"
[x,y] = meshgrid(-5: 4: 5, -5: 4: 5);
x1 = -1;
y1 = 0;
V_x1 = ((y-y1)./((x-x1).^2+(y-y1).^2))
V_x1 = V_x1(:) "
The output data:
"
V_x1 =
-0.1220
-0.0588
0.1200
-0.2000
-1.0000
0.3333
-0.1220
-0.0588
0.1200
"
Accepted Answer
More Answers (1)
Rahul B
on 12 May 2021
0 votes
Hie
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!