Hello,
I am unsure what you mean by multiplying two graphs. Do you want to simply plot two graphs in a single window? This can be done two ways. If your data is represented as (x1, y1) and (x2, y2), you can either type
plot(x1, y1, x2, y2)or
plot(x1, y1)
hold on
plot(x2, y2)Perhaps do you want to multiply the two curves together? If your data shares the same sampling data and is represented as (x, y1) and (x, y2), you can type
plot(x, y1, x, y2, x, y1.*y2)However, if the sampling data differs between your signals (i.e. your data is represented as (x1, y1) and (x2, y2)), you can compute the union between your sampling data (e.g. x = union(x1, x2)), resample y1 and y2 at the new points x, and then plot y1.*y2.
Maybe you have another definition of graph multiplication. If you could provide more details, I could assist you further.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
Message Edited by GrantM on 02-01-2007 08:37 AM