cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Question about exporting data from Mathcad

yhuang-3
1-Visitor

Question about exporting data from Mathcad

Hi All, I have one complicated expression, that can be plotted in time domain. However, I am not able to export the data for this expression, even though I can export the time data and some simple time domain function. Would anyone give me some suggestion that I can try to troubleshoot this problem? I am not able to upload a simplified case because the simplified cases can work.

Thank you!

data exportion.png

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:yhuang-3)

The problem you're dealing with is the difference between evaluation and plotting the results of a function.

{I don't see any attempts to export the data (to outside of Mathcad).}

Call it a shame, or call it a blessing, but Mathcad is more forgiving when it comes to plotting than it is to evaluation.

When evaluating it insists on finding results, when plotting it only wants to show a picture. If there are e.g. unknown, or imaginary results for the evaluation of the function, it simply doesn't plot them, but it does plot all the other points.

In your case the error message at the bottom explains what's wrong. You probably have some if-statements in your function (can't see because you did not attach the worksheet), but they (apparently) do not cover all possibilities.

Be sure to cover them, and the evaluation should run.

If you need help with that, attach the worksheet.

Success!
Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:yhuang-3)

The problem you're dealing with is the difference between evaluation and plotting the results of a function.

{I don't see any attempts to export the data (to outside of Mathcad).}

Call it a shame, or call it a blessing, but Mathcad is more forgiving when it comes to plotting than it is to evaluation.

When evaluating it insists on finding results, when plotting it only wants to show a picture. If there are e.g. unknown, or imaginary results for the evaluation of the function, it simply doesn't plot them, but it does plot all the other points.

In your case the error message at the bottom explains what's wrong. You probably have some if-statements in your function (can't see because you did not attach the worksheet), but they (apparently) do not cover all possibilities.

Be sure to cover them, and the evaluation should run.

If you need help with that, attach the worksheet.

Success!
Luc

Hi LucMeekes, thank you! You are right, I defined a piecewise function using the "if" function. In my previous code, I only defined 0 to t1 and t1 to t2, which caused the problem. Now I add a new line in the piecewise function definition, by inputting "0  otherwise", that solved my problem. Thank you again for your help!

Announcements

Top Tags