03-16-2013 01:45 PM - edited 03-16-2013 01:46 PM
tst is right.
Using the Ramp function is much easier. Same issues with the use of doubles..
I was too focused on reproducing the Matlab code that I lost sight of the basic function that it represented.
The Ramp function in LabVIEW is similar to:
linspace(start, stop, points)
There is an interesting variation of the results with each method.
03-17-2013 07:23 PM
Hi Ray,
Thanks a lot for your help. I have solve it. I got 10 points for 't1' and 11 points for 't' . Its exactly as the mathscript.
thanks all of you.
03-17-2013 07:37 PM
Hi Ray,
Ramp is a great function. Thanks a lot.
03-17-2013 07:45 PM
Then you should mark Ray's message as the solution to your question rather than your own thank you message. First you will have to go to the options menu to the upper right of your message to unmark it as the solution.
03-17-2013 08:10 PM
Hi Ravens,
Sorry for that. I didn't mean to insult Ray. I appriciate the help. But there is a bit difference between Ray's and mine code. I changed a bit, and it is the exactly what mathscripts 't' and 't1' dose. Please see my attached file.
Thanks.
03-17-2013 09:43 PM
Really? What you have looks pretty much like what Ray gave you in message #9. So he gave you 99% of the answer, and your one tweak of the way to derive the final array is the solution?