% check for purely real input. if so, zero out the imaginary part.
realInputs = (imag(U) == 0) & (imag(V) == 0);
Z(realInputs) = real(Z(realInputs));
end
As I am editing this post, I see the expected symbolic display in the nice form as have grown to love. However, when I save the post, it does not display. (In fact, it shows up here in the discussions post.) This seems to be a new problem, as I have not seen that failure mode in the past.
You can see the problem in this Answer forum response of mine, where it did fail.
After a quick experiment, it appears that any old answer or comment on Answers has to be reopened with an edit and then resubmitted for the symbolic output to show up. It doesn't have to be rerun, just resubmitted.
Hi @John D'Errico, this is a bug on our end that is preventing symbolic outputs from getting displayed in the outputs. So clearing the cache or changing browsers won't help. We are still investigating to find the root cause to fix it.
And today, even doing as I described did not fix the problem. That is, clear all caches. delete all history. Quit the browser, restart (safari.) Multiple times emptied caches. Then I tried using firefox, so a totally different browser. Nothing fixes it. And it breaks daily, even when eventually it does work.
Even changing browsers did not fix it today. And I've gotten no response from @Tushal Desai
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.