photo

Duncan Carlsmith


University of Wisconsin - Madison

Last seen: 1 day ago Active since 2022

Followers: 1   Following: 0

Message

Physics professor active in computational physics education for 1st-year university students.

Programming Languages:
Python, C++, MATLAB, HTML, Fortran
Spoken Languages:
English

Statistics

All
  • Thankful Level 3
  • 5-Star Galaxy Level 3
  • 3 Month Streak
  • Personal Best Downloads Level 4
  • GitHub Submissions Level 1
  • First Answer
  • First Submission
  • Explorer
  • First Review

View badges

Feeds

View by

Question


Write text to web browser including carriage returns.
The following code displays a function saving the resulting text as a character array and attempts to display the result. test...

6 days ago | 1 answer | 0

1

answer

Answered
generating periodic trapezoidal waves with ramps
%pulsetran returns a vector. Here is an analytic method i just put together: %Create an analytic trapzoidal pulse train. syms ...

2 months ago | 0

Answered
How to compute response to single node impulse in structural model from modal eigenvectors directly
I think I found the answer. I need to extract the various matrices with assembleFEMatrices and renormalize the modal solutions.

3 months ago | 0

Question


How to compute response to single node impulse in structural model from modal eigenvectors directly
According to https://www.mathworks.com/matlabcentral/answers/1968759-scaled-mode-shapes-in-modal-analysis-of-a-simulated-system-...

3 months ago | 1 answer | 0

1

answer

Question


How do I damp a membrane subject to a time-dependent force with PDE Toolbox
I have a membrane wave equation simulation using PDE toolbox functions with time-independent but spatially constant or varying m...

4 months ago | 1 answer | 0

1

answer

Question


Error imposing space-derivative-dependent boundary condition with solvepde using variable state.uy - Error: Unrecognized field name "uy".
I would appreciate any advice of the following. I am working with PDE Tool box solvepde and a 2d membrane simulation and struggl...

4 months ago | 1 answer | 0

1

answer

Answered
How to convert something from Latex to matlab, is there a specific way where i can convert it with ease from latex to matlab, some function? please help
CHATGPT will do it. You there are other options and could even call the API within your code to do it programmatically. See e.g....

4 months ago | 0

Question


How does one solve equations between symbolic functions for functions
I am testing out MATLAB FunctionalDerivative for generating and solving Euler equations derived from a Laargrangian with a holon...

6 months ago | 1 answer | 0

1

answer

Answered
Polynomial Regression and finding Standard Error
The following shows how. https://www.mathworks.com/matlabcentral/fileexchange/165941-polynomial-fit-explorer

7 months ago | 0

Question


Live Editor long display output bug. Command to remove output from Live Script?
I bug I recently encountered corrupted my Live Script so it was not openable. Using symbolic methods, I had generated a formula ...

7 months ago | 1 answer | 0

1

answer

Answered
How to open a .raw file in MATLAB
Some references applicable to "rgb" "raw" and dng are https://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-r...

1 year ago | 0

Answered
How do I decode DigitalCamera.MakerNote returned by imfinfo as a vector of doubles?
Answering my own question after much ferreting around. It appears that the APPLE makernotes file is a BLIST, a binary version of...

1 year ago | 0

| accepted

Question


How do I decode DigitalCamera.MakerNote returned by imfinfo as a vector of doubles?
I have a iPhone .jpg taken with location services for the camera enabled. Using EXIFTool , I can see data (shown below) that I n...

1 year ago | 1 answer | 0

1

answer

Answered
Curve fitting using different functions
You are asking about nonlinear fitting and several choices are available including nlinfit. Try can try using Curve Fitter, from...

1 year ago | 0

Question


zoom image interactively maintaining a square zoom field
I'd like to use the + button with e.g. some control key, or some other trick, in order to zoom interactively on an image while m...

1 year ago | 2 answers | 0

2

answers

Answered
Finding minimum within a set of rows below a certain point?
% Make fake data, rows of random monotonically increasing values. X=cumsum(rand(10),2) % Make logical array for values satisfy...

1 year ago | 0

Answered
How to delete all the commented content in a m-file?
% Read the contents of the file into a string variable filename='Your_File.m' % Use fopen to open the file for reading fi...

1 year ago | 0

Answered
Multiple roots formula with Matlab
Not likely the point of the exercise but this works: syms x; solve(x^4- 6*x^3 + 12*x^2 - 10*x +3==0,'ReturnConditions',true) ...

1 year ago | 0

Answered
Connecting to ChatGPT using API
See Generate MATLAB code using ChatGPT API at https://www.mathworks.com/matlabcentral/fileexchange/125220-generate-matlab-code-...

2 years ago | 3

Answered
Spellcheck functionality in MATLAB editor
On a Mac, BBEDIT will open a .mlx (which is zip file, (see https://www.mathworks.com/help/releases/R2016a/matlab/matlab_prog/liv...

2 years ago | 1