Multiply a cell with a scalar number
3 views (last 30 days)
Show older comments
Hello all, i have a problem in multiply my cell in Matlab. I have 1x5218 cell wich i want to multiply it with a scalar number. First, i used code like this,
t = readtable('100Hz.csv');
input = t.x10000(1:5218);
new_input = input.*2;
it return,
Undefined operator '.*' for input arguments of type 'cell'.
Error in FFT_Matlab (line 3)
new_input = Input.*2;
how i solve this problem ? Thank you
2 Comments
Davide Masiello
on 27 Sep 2022
Although I can imagine you can easily fix the problem by writing
t = readtable('100Hz.csv');
input = t.x10000{1:5218};
new_input = input.*2;
But I won't be 100% sure until you share the file.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!