cell array multiplication with number error

1 visualización (últimos 30 días)
Sören Gevaert
Sören Gevaert el 22 de Jun. de 2020
Comentada: madhan ravi el 22 de Jun. de 2020
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 comentarios
madhan ravi
madhan ravi el 22 de Jun. de 2020
Show the full error message.
Sören Gevaert
Sören Gevaert el 22 de Jun. de 2020
CHAaV = CHAamv .*(1*10^-3);
Undefined operator '.*' for input arguments of type 'cell'.

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 22 de Jun. de 2020
Editada: madhan ravi el 22 de Jun. de 2020
Shot in the dark.
CHAaV = CHAamv{:,:} * 1e-3;
  2 comentarios
Sören Gevaert
Sören Gevaert el 22 de Jun. de 2020
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 el 22 de Jun. de 2020
Screenshot of the workspace showing the variable contents would be helpful.

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by