20,410 reputation
42785
bio website
location
age
visits member for 1 year, 2 months
seen 42 mins ago
stats profile views 1,389

31m
comment Transcendental equation inside another equation when 3D plotting
Your errors are coming from ContourPlot3D attempting to evaluate g with symbolic arguments. You need to define g so that it only takes numeric arguments, like g[x_?NumericQ, t_?NumericQ] := blah. The same goes for k obviously.
23h
comment Compile: Putting integers into a list
You can use Perm = Most@{0} to create an empty list of integer type.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
@bills, I think your latest edit sums up the situation nicely. I see no reason to replace it with one of mine that would just say the same thing :-)
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
@0x4A4D, apparently so did WRI when they wrote the manual...
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
Yes, it effectively sets the bottom row of the matrix to {0,0,1} to make the transformation affine. It would be better if the message explained that, so you know that what you get out is not what you asked for.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
@bills, I see what you mean, but Suzan is using the first form: GeometricTransformation[g, tfun] and it isn't clear that tfun must be affine.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
I inferred it from the error message - it appears to be missing from the documentation.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
@0x4A4D, LinearFractionalTransform just passes the matrix through to TransformationFunction. The real issue here is that GeometricTransformation can't handle non-affine transformations.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
The problem in your update is with GeometricTransformation, which can only deal with affine transformations.
1d
comment Custom TransformationFunction in Graphics? GeometricTransformation::nonaffine error
Just provide the transformation matrix as an argument, e.g. custom = TransformationFunction[Array[Plus,{4,4}]]
1d
comment Must Run Cell Twice to Display Values
I can reproduce the problem with v8 on Windows 7. A workaround is to add a tiny pause between the two lines, e.g. Print[InputField[]];Pause[0.0001];CellPrint[blah...]
1d
comment Replace with position and order number
Please try to describe in words what you are trying to do, rather than expecting people to deduce it from an example. Also, there's no need for all the (* Input 10 ==< *) stuff - code in a code block will be understood to be input, it doesn't need extra signposts.
2d
comment How to embed an image into a string?
It looks like a bug to me, since pasting directly into a string literal works for Graphics but not for Image. The tutorial String Representation of Boxes is probably the best documentation for the markup.
2d
comment Image Restoration
The best choice of deconvolution algorithm and parameters depends on many factors, including how well the PSF is known, what a priori information is available about the image content, the distribution of noise and so on. You seem to be looking for a tutorial on image restoration which is beyond the scope of this site.
Jun
15
comment Contour plot of an interpolated input variable conditionally as functions of other inputs
I'm not sure what you want to see. A contour or density plot can only show a single z value for each point in the x-y plane, how do you intend the range of allowed z values to be visualised?
Jun
15
comment Contour plot of an interpolated input variable conditionally as functions of other inputs
People will be far more willing to look at your problem if you provide some code which they can copy and paste into Mathematica to work from. This is courteous (because it reduces the amount of work someone must do to help you) and also helps to clarify exactly what you are trying to do.
Jun
13
comment InverseFunction on an Interpolating Function is misbehaving
I can reproduce this with version 8 on Windows 7
Jun
12
comment Getting RGBA data of an image with ImageData
You should probably check that the image doesn't already have an alpha channel. Also you will probably find ArrayPad to be faster than mapping Append onto every pixel.
Jun
12
comment Little problem with Through
Are you aware that you can do this with Part? list[[All,{1,-1}]]
Jun
11
comment Clipboard with transparency
@Liam, good idea.