Clear Filters
Clear Filters

plot an image using pulsating voltage

1 view (last 30 days)
MANJUNATH
MANJUNATH on 18 Oct 2012
Commented: amogha on 18 Jun 2021
i have a data i.e voltage values which are varying at a faster rate ,
how to show them as a grayscale image with 32 by 32 size( there should be image with 32 by 32 pixels )
and what should be the range of the voltage values ?
  1 Comment
amogha
amogha on 18 Jun 2021
a = csvread('lt1.csv');
B = rescale(a,0,255);
V=B
N = numel(V) ;
M = NaN(ceil(sqrt(N))) ;
M(1:N) = V ;

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!