05-16-2013 11:40 PM
hi
kindly tell me how can i implement this code in l.v. i do not know how to use if in l.v
here is the code:
for i=1:m
for j=1:n
if b11_mat(i,j)<=lum(i,j)
b11_mat(i,j)=lum(i,j);
end
end
end
thnx
Fairy
05-17-2013 12:00 AM
Do one thing, Post your C code. I will convert it into LabVIEW.
This is bit confusing.
Thanks
05-17-2013 12:15 AM - edited 05-17-2013 12:16 AM
Hi Fairy,
I think this is basically what you are trying to do with your code.
The case structure is generally a pretty good replacement for the if statement.
You can find a little more about the case structure here.
The other neat thing is the for loop automatically indexes through the arrays for you.
Good Luck,
Brett
05-17-2013 02:33 AM - edited 05-17-2013 02:35 AM
05-17-2013 05:01 AM
Hi,
I think Gerd has shown you very effective code for your request,
here I just add the possibility to control the value m and n.
regards,
Yan.
05-17-2013 05:39 AM
05-25-2013 01:05 AM
Thnx all of u.. it realy works :).
05-25-2013 01:11 AM
hi GerdW!
From where i can find max/min vi?
05-25-2013 01:31 AM
fairy55 wrote:From where i can find max/min vi?
Try the comparison palette. (Min&Max).
05-25-2013 02:24 AM
hi!
i have another problem now.
r1= 1 2 3
4 5 6
r1(:)= 1
4
2
5
3
6
how can it possible in l.v?
thnx