Community Profile

photo

JJH


2017 이후 활성

Statistics

  • Thankful Level 2

배지보기

Content Feed

보기 기준

질문


How can I estimate a value of a noise parameter when using linsolve?
I am currently trying to estimate the amount of noise present in my system so that I can minimise the error on some of my parame...

약 2년 전 | 답변 수: 0 | 0

0

답변

질문


How do I determine which model fits my data the best?
I am fitting two different curves to a set of data to determine which of them is the better fit. I'm using myfit1 = fittype('-...

약 2년 전 | 답변 수: 2 | 0

2

답변

질문


How do I get the error of a fitting function?
I've written a function that does a Lorentzian fit on a set of data. I want to calculate an error bar for the accuray of this fi...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I exclude anomalies from a plot in a data set?
I want to plot a data set and exclude anomalous points. Say I have some data, e.g. x = [0.5 0.48 0.2 0.51 0.49 0.52] y = [1 2 ...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I get a legend with custom colours in a loop plot?
I'm plotting some data within a for loop using the following code: for k = 1:13 % there is some code here to loop through some ...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I save a figure with the same file name as its title within a for loop?
I've written a code that saves figures within a loop. Currently I have the code for k = 1:13 % there is some code here to loop...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I store matrices into a cell array in the correct order?
I'm trying to store a set of matrices that are generated using a for loop. The structure of the code is for k = 1:N % loops th...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I flip the order of cells in a cell array?
If I have a cell array with a single row of cells of different sizes, e.g cellarray = {3x2 double} {4x2 double} {5x2 double} h...

3년 이하 전 | 답변 수: 2 | 0

2

답변

질문


Why does my gaussian fit give an error?
I have a code that loops through a set of .csv files and imports the data stored in them as Wavelength and Intensity and correct...

3년 이하 전 | 답변 수: 0 | 0

0

답변

질문


How can I sort data in relation to a previous data set?
I have a data set that produces a cell for each iteration of a for loop. Each cell contains an n*2 matrix with n between 0 and 6...

3년 이하 전 | 답변 수: 0 | 0

0

답변

질문


How do I save a matrix output from a single iteration of a loop?
I have a code that is looping through a set of folder and performing operations on the files in that folder. The loop structure ...

3년 이하 전 | 답변 수: 1 | 0

1

답변

질문


How do I do a linear fit on half of the data points in a set?
I have a code that should plot a set of data points and then a linear fit to the data points. Only the second half of the data f...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How do I correctly store the output of a double for loop?
I have a for loop that loops over each folder in a directory and then does another for loop over every file in that folder. I ne...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How do I store every output from every iteration of a for loop in an array?
I have a code that extracts some parameters from some data in the following way: LasingThreshold=0.1; % %---------Convert xl...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How can I make the index output of function into an array?
I want to use the findpeaks function in matlab to find the maxima of my data set. I can get the location of each of these maxima...

약 3년 전 | 답변 수: 0 | 0

0

답변

질문


How can I apply a function to each file in each folder of my directory?
I have some code that takes data from a set of folders and sorts it using datenum. Index = 1:13; SpectrumFileInfo = dir('Spect...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How can I convert csv files to matlab whilst also looping through folders?
I have been trying to write a code that loops through a set of folders that all contain a set of files. The files in each folder...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How can I get a plot legend to give a different value for every input file?
I have a code that plots some data: D = 'My Directory'; S = dir(fullfile(D,'LIV Data T= *.mat')); % Makes a structure w...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


How can I edit the output of xlsread to make each column of the Excel file a single variable in a structure?
I have a set of excel files, each of which contains three columns (2 examples are included). I am converting them to .mat files ...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


Why is my for loop not iterating in the way I want?
I have a piece of code clear; x=2; expapprox=0; expapproxarray=zeros(1,12); for i=0:12 expapprox=expapprox+x^i...

약 3년 전 | 답변 수: 2 | 0

2

답변

질문


How do I plot the output of a for loop?
I have a code that computes the difference between the exponential function in matlab and an approximation of it using the Taylo...

약 3년 전 | 답변 수: 0 | 0

0

답변

질문


How to make a function operate on a vector of arbitrary length
I have written a function to compute the factorial of a positive integer and return error results if something that isn't a posi...

약 3년 전 | 답변 수: 1 | 0

1

답변

질문


Error message 'Unable to perform assignment because brace indexing is not supported for variables of this type'
I have a code to extract a parameter from a list of file names in a for loop. However, if I run this I get the error message in ...

약 3년 전 | 답변 수: 0 | 0

0

답변

질문


How do I output the same single parameter for a set of different files?
I have a code that I want to use to extract a particular parameters from all files in my directory with a .mat ending. I have se...

약 3년 전 | 답변 수: 2 | 0

2

답변

질문


Acting scalar variables on matrices while creating density plots
Hi, I am trying to make a density plot in Matlab. My problem is that I want to use some Hamiltonian, H=a*kron(PauliX,Pauli...

4년 이상 전 | 답변 수: 0 | 0

0

답변

질문


How do I create a density plot?
Hi, I'm trying to make a density plot using pcolor that shows we1 on one axis, t on the other and the colour map as the trace d...

4년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Plotting from a for loop
Hi, I have a code (given below) where I calculate the trace distance between two matrices and take the output which I have calle...

4년 이상 전 | 답변 수: 1 | 0

1

답변