Take a look at one of the examples that use the ThingSpeak support library:
https://github.com/mathworks/thingspeak-arduino/tree/master/examples
More specifically try modifying this one:
https://github.com/mathworks/thingspeak-arduino/tree/master/examples/WriteMultipleVoltages
Does that work?