Hello
I have an 22930666x1 cell array and i want to multiplie every element with 1*10^-3 but i keep getting the following error:
Undefined operator '*' for input arguments of type 'cell'.
i also tried it with .*
this is how i do it
CHAamv = readtable('C:\Users\soren\Desktop\Bureaublad\school\MAP\ELFmetingen_5juni2020\ELFmetingen_5juni2020\achtergrondMetingen\picoscoop\achtergrond_320uT_low_10secRecord.csv');
CHAamv = table2array(CHAamv);
CHAamv(:,1)=[];
CHAamv(1,:)=[];
CHAaV = CHAamv *(1*10^-3);
i hope someone can explain what my problem is
thanks in advance

댓글 수: 2

madhan ravi
madhan ravi 2020년 6월 22일
Show the full error message.
CHAaV = CHAamv .*(1*10^-3);
Undefined operator '.*' for input arguments of type 'cell'.

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

답변 (1개)

madhan ravi
madhan ravi 2020년 6월 22일
편집: madhan ravi 2020년 6월 22일

0 개 추천

Shot in the dark.
CHAaV = CHAamv{:,:} * 1e-3;

댓글 수: 2

Thanks for the reply but unfortunately it still doesnt work. I get following error
>> CHAaV = CHAamv{:,:} * 1e-3;
Error using *
Too many input arguments.
madhan ravi
madhan ravi 2020년 6월 22일
Screenshot of the workspace showing the variable contents would be helpful.

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

카테고리

도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2020년 6월 22일

댓글:

2020년 6월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by