Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ First, thanks for make some kind of overview of my problem! I just have a few questions: 1. Did you use other constraints and/or starting values than mine? 2. I agree with the nice fit between the experimental data and the model and the resulting values, but where exactly do I have to implement the last code with "Block[..]" in my code? 3. Is it then possible to export the fitted values? $\endgroup$ Commented Mar 21, 2018 at 16:43
  • 1
    $\begingroup$ 0. don't mention it! 1. no, I just made ω explicitly dependent on f (and all associated symbols, too); similarly for Reff (dependent on f and α); I wanted to have expressions with explicit dependencies because that is easier to debug 2. you can evaluate it after FindFit evaluates; assuming all goes well it should produce a list of frequency-absorption pairs 3. Evaluate Export["fitted.txt",%,"Table"] after the Block. $\endgroup$ Commented Mar 21, 2018 at 16:56
  • $\begingroup$ Thanks again! But could it be that there is missing a bracket after "Block{..}"?-> Block[{...? and unfortunately there is the following error message: "With: With called with 1 argument; 2 or more arguments are expected". Is there missing something after "[..]Thread[f->x]}];" and the next "];" and a second message: "Transpose: The first two levels of {412,y} cannot be transposed" $\endgroup$ Commented Mar 21, 2018 at 17:48
  • 1
    $\begingroup$ please check the updated Block in the answer; I think it should do the trick, this time... (it was missing the left bracket in Block and the comma after the right curly brace in With; also, the last Transpose contained x which was out of scope (With)) $\endgroup$ Commented Mar 21, 2018 at 17:52
  • $\begingroup$ Great! Thats exactly the tool I need! Thank you very much for your effort! $\endgroup$ Commented Mar 22, 2018 at 10:59