How to remove NaNs from .struct

6 views (last 30 days)
Ashishkumar Gupta
Ashishkumar Gupta on 5 Jan 2023
I have one .struct. Inside this there are 3 different .struct. These .struct have 50-70 different variables (date, time, numbers) (attached here)
I want to remove all the NaNs or replace them with 0 .
Thank you!!
  7 Comments
Walter Roberson
Walter Roberson on 6 Jan 2023
Converting to table is not a bad approach.
Ashishkumar Gupta
Ashishkumar Gupta on 6 Jan 2023
Hi @Image Analyst. Sorry for the inconvenience caused. I am new here, so did not know that I have to attach a file.
But yeah, I got a solution to my problem!!!!
Thanks everyone...

Sign in to comment.

Answers (0)

Categories

Find more on Data Type Conversion 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!