필터 지우기
필터 지우기

automation of code for many variables

조회 수: 16 (최근 30일)
Amit Ifrach
Amit Ifrach 2021년 10월 4일
댓글: John D'Errico 2024년 4월 24일 10:40
לק"י
Hi guys,
I got alot of variables due to high amount of samples to analyze. I import csv data from the import tool and then process each variable that was imported.
I want to know, what is the recommended way to run code on several variables and then save the outputs in an ordered way? can you refer me to a page or video that can explain it?
tanks very much!
Amit.
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2021년 10월 4일
hello
I would recommend you organize your data in a structure
then it's fairly easy to save the entire structure in a mat file

댓글을 달려면 로그인하십시오.

채택된 답변

Krishna
Krishna 2024년 4월 24일 10:15
Hi Amit,
When you're working with a substantial number of variables in MATLAB, particularly from CSV file imports, adopting a systematic method involving loops, cell arrays, or structures for processing and organizing your data is advisable. This method aids in efficiently managing your data and ensures your code remains tidy and scalable.
Additionally, for handling large datasets, consider using Datastores. Datastores in MATLAB are designed to simplify the processing of large volumes of data. You can learn more about how to use Datastores by visiting the following documentation,
Please explore each option to determine which best meets the needs of your dataset.
Hope this helps.
  댓글 수: 1
John D'Errico
John D'Errico 2024년 4월 24일 10:40
This seems a pretty reasonable answer, given the vagueness of the question. Sadly, it is several years beyond when the question was asked, so I've accepted the answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by