Clear Filters
Clear Filters

plotting data with a 1*1 struct

14 views (last 30 days)
bouchra turki
bouchra turki on 31 May 2021
Commented: bouchra turki on 1 Jun 2021
How can I plot data with a 1*1 struct like in these pictures attached bellow:
I am really need this help
Thank you in advance.

Answers (1)

Jakob B. Nielsen
Jakob B. Nielsen on 31 May 2021
Just play around a little bit with how you call specific indices out of a structure, it will become easy once you get the hang of it. For example:
This will plot the first column of the data matrix in the Ex structure in the Electric Field structure in the data structure against the 2nd column of the same structure. Give it a try! :)
  1 Comment
bouchra turki
bouchra turki on 1 Jun 2021
thank you for your reply.
I try this but I want to have the electric field graph as a function of the variable x E_x=f(x)
the plot of the electric field in all the space:
I have: x= 1:3000;
plot ( x,,1),,3000))

Sign in to comment.


Find more on App Building 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!