Hello, I would appreciate if someone helped me with converting a signal to an image to use the image as an input to CNN to do forecasting/prediction
1 回表示 (過去 30 日間)
古いコメントを表示
I want to convert the signal which is the power generated by a turbine to an image so I can use the image as an input to CNN to do forecasting/prediction
2 件のコメント
Ojaswi
2023 年 3 月 10 日
In what format does this signal come in?
A grayscale image is just an array in which each element of the array contains an intensity value for a pixel. I imagine you can reshape your data into an array form and normalize to your expected range of values.
採用された回答
その他の回答 (1 件)
nahed zemouri
2023 年 6 月 25 日
you can use this function
XTrain= reshape(XTR, [size(XTR,1),1,1,size(XTR,2)]);
XTest= reshape(XTST, [size(XTST,1),1,1,size(XTST,2)]);
YTrain= reshape(YTR, [size(YTR,1),1,1,size(YTR,2)]);
YTest= reshape(YTST, [size(YTST,1),1,1,size(YTST,2)]);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!