Home
Home
Apps
Apps
Ask
Ask
Manual
Manual
Share
Share

DomainPlot() with functions with conditional statements


#1

DomainPlot() does not seem to work with functions which contain conditional statements. Not sure if I’m doing something wrong or if there is a solution for this.


#2

As far as I know, there is no DomainPlot function built in to MS.


#3

I think the poster is referring to a script file posted under a different discussion.

I’ve tried playing with it on my Fire tablet as well as the web version. It would be helpful for the poster to give examples of what was tried and perhaps tag the script author, @demosn01


#4

Hi Michael,Thanks for your response. I was actually trying to plot a sawtooth waveform at the time of the post, and using a conditional statement to deal with its periodic ‘slope’ changes, i.e. rising and falling segments. Waveform parameters would be frequency, rise time, fall time, dc level. Listplot is probably the way to do this but it requires a lot of setting- up in terms of coming up with (x,y) arrays. I deleted the file I was working with but may attempt to recreate it.