Define New Variables Based on Pre-existing One
1 回表示 (過去 30 日間)
古いコメントを表示
I have a variable and want to create more variables based upon it; however, I'm having a hard time coming up with the syntax for it.
Say I have:
total_channels=5 %%Total channels will probably be between 1 and 6 depending on the image I'm processing
I want to create new variables based on this number, so that I can add pixel information into those variable
I'd like the new variables to be channel_1, channel_2, channel_3 etc.
Any help is greatly appreciated
0 件のコメント
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!