Question

Calling an object method where the name of the method is a varible

I am trying to call an object method when I have the object instance, the method name, and the argument value(s) as variables. I...

4 Monate ago | 1 answer | 0

Answered

How can I get rid of the horizontal white lines?

K-Nearest Neighbor Filtering does a decent job. You can play with the parameters, but here are some quick settings I tried. ...

How can I get rid of the horizontal white lines?

K-Nearest Neighbor Filtering does a decent job. You can play with the parameters, but here are some quick settings I tried. ...

fast 2 Jahre ago | 0

Answered

Is a Matlab license limited to a user or a platform?

You can set the license up as designated user and tie it to a username. In that case you can install the software on up to four ...

Is a Matlab license limited to a user or a platform?

You can set the license up as designated user and tie it to a username. In that case you can install the software on up to four ...

fast 2 Jahre ago | 0

Answered

why cant mex find visual studio 2013

Apparently it's missing entries in your Windows registry. You could double-check that those entries are missing using regedit. ...

why cant mex find visual studio 2013

Apparently it's missing entries in your Windows registry. You could double-check that those entries are missing using regedit. ...

fast 2 Jahre ago | 1

Answered

xlswrite too large imput

The maximum number of rows in a single worksheet for newer versions of Excel is 1,048,576 according to https://support.office.co...

xlswrite too large imput

The maximum number of rows in a single worksheet for newer versions of Excel is 1,048,576 according to https://support.office.co...

fast 2 Jahre ago | 1

| accepted

Answered

Error: The variable in a parfor cannot be classified

Try replacing the for loop with the eval() statements with [ph_samples_volume, th_samples_volume] = deal(zeros(dimension(1)...

Error: The variable in a parfor cannot be classified

Try replacing the for loop with the eval() statements with [ph_samples_volume, th_samples_volume] = deal(zeros(dimension(1)...

fast 2 Jahre ago | 0

Answered

write files in.csv format in separate loacation

You're saving everything to 'thisfile.csv'. You need to change the filename with each iteration of the for loop. Try something...

write files in.csv format in separate loacation

You're saving everything to 'thisfile.csv'. You need to change the filename with each iteration of the for loop. Try something...

fast 2 Jahre ago | 0

| accepted

Answered

Point Spread Function of an optical system

Sorry, I was out on vacation for a couple weeks, then I posted to <https://www.mathworks.com/matlabcentral/answers/36064-sphe...

Point Spread Function of an optical system

Sorry, I was out on vacation for a couple weeks, then I posted to <https://www.mathworks.com/matlabcentral/answers/36064-sphe...

fast 2 Jahre ago | 0

Solved

Too mean-spirited

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

fast 3 Jahre ago

Answered

Matlab > Genetic annotator > HELP 2

x is an input to the function parameterized_fitness(). Its values are defined by the code that calls this function, not within ...

Matlab > Genetic annotator > HELP 2

x is an input to the function parameterized_fitness(). Its values are defined by the code that calls this function, not within ...

mehr als 3 Jahre ago | 0

Answered

How can I force imregister to use the parameter 'InitialTransformation'?

One obvious problem: You have flipped the order of img_1 and img_2 in your two registration function calls. In your usage of i...

How can I force imregister to use the parameter 'InitialTransformation'?

One obvious problem: You have flipped the order of img_1 and img_2 in your two registration function calls. In your usage of i...

etwa 4 Jahre ago | 1

Solved

Remove the vowels

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

etwa 4 Jahre ago

Answered

Keyboard shortcut to evaluate current line?

Create a Quick Access Toolbar shortcut for doing this and call it "Run line". Here's the code: currentEditor = matlab.desk...

Keyboard shortcut to evaluate current line?

Create a Quick Access Toolbar shortcut for doing this and call it "Run line". Here's the code: currentEditor = matlab.desk...

etwa 4 Jahre ago | 8

| accepted

Question

What does the output of imregcorr mean?

I am trying to understand the output of imregcorr and could use some help. Below is the code I am working with. I have my own ...

etwa 4 Jahre ago | 1 answer | 0

Solved

Is It a Palindrome?

Given a string or array, determine if it is a palindrome.

mehr als 4 Jahre ago

Answered

How to do ifft to data derived in frequency domain

I'm going to assume you have a vector f which is the frequency sampling vector and a signal s. Assuming s is in a centered coor...

How to do ifft to data derived in frequency domain

I'm going to assume you have a vector f which is the frequency sampling vector and a signal s. Assuming s is in a centered coor...

mehr als 4 Jahre ago | 1

| accepted

Answered

About Frequency in fft

Here's what I would do: N = 256; %Length of fft after padding delta_t = 10;%seconds delta_f = 1/(N*delta_t);%Hertz ...

About Frequency in fft

Here's what I would do: N = 256; %Length of fft after padding delta_t = 10;%seconds delta_f = 1/(N*delta_t);%Hertz ...

mehr als 4 Jahre ago | 0

| accepted

Answered

Importing data from excel with formula

Here's a snippet of code to get you started. I created a spreadsheet called delme.xlsx. In cell A1 I put the value 1. In cell...

Importing data from excel with formula

Here's a snippet of code to get you started. I created a spreadsheet called delme.xlsx. In cell A1 I put the value 1. In cell...

etwa 5 Jahre ago | 0

| accepted

Answered

Very basic object oriented question

I don't believe you're allowed to call non-static class methods from within the constructor itself. Until the constructor retur...

Very basic object oriented question

I don't believe you're allowed to call non-static class methods from within the constructor itself. Until the constructor retur...

mehr als 5 Jahre ago | 0

| accepted

Answered

Setting Chart Value Range for Excel2003/2007 - separated Cells

You might try the following: RangeOBJ = ChartSheet.Range('F19,F22'); chart.SeriesCollection(1).XValues = RangeOBJ.Areas; ...

Setting Chart Value Range for Excel2003/2007 - separated Cells

You might try the following: RangeOBJ = ChartSheet.Range('F19,F22'); chart.SeriesCollection(1).XValues = RangeOBJ.Areas; ...

mehr als 5 Jahre ago | 0

Answered

Image processing with gradient FFT

You should check out Focus Measure in the File Exchange at <http://www.mathworks.com/matlabcentral/fileexchange/27314-focus-m...

Image processing with gradient FFT

You should check out Focus Measure in the File Exchange at <http://www.mathworks.com/matlabcentral/fileexchange/27314-focus-m...

mehr als 5 Jahre ago | 0

| accepted

Answered

spherical aberration and Chromatic aberration

I looked over this function quickly and I think you want to set the "mask" input value of genzern() to R_norm<=1 from my code. ...

spherical aberration and Chromatic aberration

I looked over this function quickly and I think you want to set the "mask" input value of genzern() to R_norm<=1 from my code. ...

mehr als 5 Jahre ago | 0

Answered

spherical aberration and Chromatic aberration

Hadi, I'll have to take a look at this code later. I am reasonably sure that Malacara's Zernikes use a different ordering an...

spherical aberration and Chromatic aberration

Hadi, I'll have to take a look at this code later. I am reasonably sure that Malacara's Zernikes use a different ordering an...

mehr als 5 Jahre ago | 0

Answered

Can I use one Matlab 2010a individual license on both a work station and a laptop?

How many activations does the Mathworks License Center show? Go to <https://www.mathworks.com/licensecenter>. Then click on th...

Can I use one Matlab 2010a individual license on both a work station and a laptop?

How many activations does the Mathworks License Center show? Go to <https://www.mathworks.com/licensecenter>. Then click on th...

mehr als 5 Jahre ago | 0

| accepted

Answered

Image Alignment Code in MATLAB

Here's what works well for me: 1. Get dftregistration.m from <www.mathworks.com/matlabcentral/fileexchange/18401-efficient-s...

Image Alignment Code in MATLAB

Here's what works well for me: 1. Get dftregistration.m from <www.mathworks.com/matlabcentral/fileexchange/18401-efficient-s...

mehr als 5 Jahre ago | 0

Question

Using fminunc() with very large scale problems

I have delved into this topic before <http://www.mathworks.com/matlabcentral/newsreader/view_thread/300661#811585>, but am retu...

mehr als 5 Jahre ago | 1 answer | 0

Answered

Converting Mathcad to Matlab

Look at the documentation for Matlab's fzero() function. For example, to find the zero of cosine between 1 and 2: fun = ...

Converting Mathcad to Matlab

Look at the documentation for Matlab's fzero() function. For example, to find the zero of cosine between 1 and 2: fun = ...

fast 6 Jahre ago | 2

| accepted

Solved

Sum the numbers on the main diagonal

Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

fast 6 Jahre ago

Answered

Goodness of Fit from Gaussian Fit

I use the following: ybar = mean(y); %Mean of the data sst = sum( (y - ybar).^2 ); %Total sum of squares gof.sse = sum( ...

Goodness of Fit from Gaussian Fit

I use the following: ybar = mean(y); %Mean of the data sst = sum( (y - ybar).^2 ); %Total sum of squares gof.sse = sum( ...

etwa 6 Jahre ago | 0

Answered

How can I save/load a .NET array to a .mat file?

It's perhaps kind of a pain, but you could cast the array to a Matlab double array prior to saving and then cast it back to a .N...

How can I save/load a .NET array to a .mat file?

It's perhaps kind of a pain, but you could cast the array to a Matlab double array prior to saving and then cast it back to a .N...

etwa 6 Jahre ago | 0