read columns on command

조회 수: 2 (최근 30일)
Ghazi
Ghazi 2024년 6월 9일
댓글: Voss 2024년 6월 11일
what he mean it here and how I write the command :
  댓글 수: 1
Image Analyst
Image Analyst 2024년 6월 9일
Who is "he"? I have no idea what "read columns on command" means. Who or what is doing the commanding? And where are the columns? Is there some matrix with some columns?
What is Inflation1? Is it a function, script, or data? In line 2, you seem to indicate it's another m-file but you did not include it. Then in line 6 you treat it as if it's a vector of data, not a function.
I'm afraid there is just not enough information for anyone to give an answer.
If still have questions, then attach your data and code to read it in with the paperclip icon after you read this:

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

채택된 답변

Voss
Voss 2024년 6월 9일

To access data from a table use curly braces {} with two subscripts or dot indexing, as in

inflation = diff(Inflation1{:,1}) ./ Inflation1{1:end-1,1} * 100;

or

inflation = diff(Inflation1.inflation) ./ Inflation1.inflation(1:end-1) * 100;

https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html

  댓글 수: 2
Ghazi
Ghazi 2024년 6월 11일
wooow I want cry, thank you bro I love you so much .
Voss
Voss 2024년 6월 11일
You're welcome!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by