photo

Duncan Carlsmith


Last seen: 3 giorni fa Attivo dal 2022

Followers: 14   Following: 0

Messaggio

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

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

Statistica

All
MATLAB Answers

12 Domande
16 Risposte

File Exchange

157 File

Discussions

17 Punti principali

RANK
5.158
of 301.533

REPUTAZIONE
10

CONTRIBUTI
12 Domande
16 Risposte

ACCETTAZIONE DELLE RISPOSTE
75.0%

VOTI RICEVUTI
5

RANK
1.648 of 21.316

REPUTAZIONE
1.146

VALUTAZIONE MEDIA
4.30

CONTRIBUTI
157 File

DOWNLOAD
389

ALL TIME DOWNLOAD
8648

RANK

of 175.212

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
17 Punti principali

NUMERO MEDIO DI LIKE
0

  • Editor's Pick
  • 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

Visualizza badge

Feeds

Domanda


Live Script animation 2025a
The folowing code produces a nice on-time animation when run from the command line. Run as a Live Script, it produces an animati...

6 mesi fa | 1 risposta | 0

1

risposta

Domanda


MATLAB online video creation trouble
The following test code runs in 3 seconds natively with v2025a but stalls and never completes in MATLAB online. Any suggestion a...

6 mesi fa | 1 risposta | 0

1

risposta

Risposto
Why Import data still does not work with CSV files in R2022a ?
I ran into this today and the suggested fixes didn't work. The problem was I had a '*' in an enclosing folder name.

10 mesi fa | 0

Risposto
How do I freqency shift a signal by a fractional amount using IFFT and FFT?
%% Frequency-Shift Demo with Synthetic Audio % This script creates a 1-s synthetic audio signal consisting of four % sinusoids...

10 mesi fa | 0

Risposto
How do I freqency shift a signal by a fractional amount using IFFT and FFT?
analytic_segment = hilbert(segment); % Complex analytic signal shifted_segment = real(analytic_segment .* exp(1j*2*pi*f_shift*...

10 mesi fa | 1

Domanda


File Exchange submission post ransomware
I tried to submit to File Exchange today using Chrome and then Safari and the required Summary shows a title but no entry field ...

11 mesi fa | 1 risposta | 0

1

risposta

Domanda


Partial Autocorrelation parcorr bug?
When running parcorr on a sample of normally distributed noise, I get some strange results like one illustrated below. Others ar...

circa un anno fa | 1 risposta | 0

1

risposta

Risposto
3D poisson for electrostatics using solvepde
The following is an example: https://www.mathworks.com/matlabcentral/fileexchange/178489-poisson-equation-pde-model-explorer?s_t...

oltre un anno fa | 0

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Risposto
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 ...

oltre un anno fa | 0

Risposto
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.

oltre un anno fa | 0

Domanda


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-...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Risposto
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....

oltre un anno fa | 0

Domanda


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...

quasi 2 anni fa | 1 risposta | 0

1

risposta

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

quasi 2 anni fa | 0

Domanda


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 ...

quasi 2 anni fa | 1 risposta | 0

1

risposta

Risposto
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...

oltre 2 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

| accettato

Domanda


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...

quasi 3 anni fa | 1 risposta | 0

1

risposta

Risposto
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...

quasi 3 anni fa | 0

Domanda


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...

circa 3 anni fa | 2 risposte | 0

2

risposte

Risposto
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...

circa 3 anni fa | 0

Risposto
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...

circa 3 anni fa | 0

Risposto
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) ...

circa 3 anni fa | 0

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

circa 3 anni fa | 3

Risposto
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...

quasi 4 anni fa | 1