Answered

how to run principal component analysis in a 3D matrix

You can reshape the matrix to 2D and then when you get results convert it back to the orginal dimensions if needed Reshape arr...

how to run principal component analysis in a 3D matrix

You can reshape the matrix to 2D and then when you get results convert it back to the orginal dimensions if needed Reshape arr...

7 Monate ago | 0

| accepted

Answered

How do I make a heat/color map from individual data points?

You can interpolate between the points using gridded data interpolation: Interpolate 2-D or 3-D scattered data - MATLAB griddata...

How do I make a heat/color map from individual data points?

You can interpolate between the points using gridded data interpolation: Interpolate 2-D or 3-D scattered data - MATLAB griddata...

7 Monate ago | 1

| accepted

Answered

Copy and paste from MATLAB to Excel?

check the variable preferences preferences Variables and see if "." is selected for number handling See this previous ques...

Copy and paste from MATLAB to Excel?

check the variable preferences preferences Variables and see if "." is selected for number handling See this previous ques...

7 Monate ago | 0

| accepted

Answered

X,Y cordinates in a Matrix

Loop through your points like this, although I see XY is probably very long! A=zeros(3,3); disp(A) B=[1 1 1; 1 3 3]; fo...

X,Y cordinates in a Matrix

Loop through your points like this, although I see XY is probably very long! A=zeros(3,3); disp(A) B=[1 1 1; 1 3 3]; fo...

7 Monate ago | 0

| accepted

Answered

How can I assign the same value to a repeating number?

(1) Not sure why "alocados" is just a random order of "datos" but you can do this any time, before or after Prb is assigned righ...

How can I assign the same value to a repeating number?

(1) Not sure why "alocados" is just a random order of "datos" but you can do this any time, before or after Prb is assigned righ...

7 Monate ago | 0

| accepted

Answered

eig versus svd functions to calculate eigenvalues of complex matrix

I saw an answer Student in stackexchange that says eigenvalues and singular values coincide for a matrix that is real symmetric ...

eig versus svd functions to calculate eigenvalues of complex matrix

I saw an answer Student in stackexchange that says eigenvalues and singular values coincide for a matrix that is real symmetric ...

7 Monate ago | 0

Answered

Stacked bar graph with repeating datetime

You need to reorder your data into a matrix with shape "Number of Unique Dates" by "Maximum Measurements on Any Date" Something...

Stacked bar graph with repeating datetime

You need to reorder your data into a matrix with shape "Number of Unique Dates" by "Maximum Measurements on Any Date" Something...

7 Monate ago | 1

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

7 Monate ago

Answered

Help me understand!

Equation 3 is a 2nd order system p''=..., the RK3 is given for 1st order p'=...(see it's first difference ) =..) See for exampl...

Help me understand!

Equation 3 is a 2nd order system p''=..., the RK3 is given for 1st order p'=...(see it's first difference ) =..) See for exampl...

7 Monate ago | 1

| accepted

Answered

How to deal with Index exceeds the number of array elements??

You could pad the missing data with 0 or nan. Anyway if you want to ignore the incomplete cycle just check out-of-bounds and co...

How to deal with Index exceeds the number of array elements??

You could pad the missing data with 0 or nan. Anyway if you want to ignore the incomplete cycle just check out-of-bounds and co...

7 Monate ago | 0

| accepted

Answered

How to plot heatmaps inside a table?

Maybe just have different axis for each radar. There are a few ways, but tiledlayout is easiest: heatvals = rand(4,40); % r...

How to plot heatmaps inside a table?

Maybe just have different axis for each radar. There are a few ways, but tiledlayout is easiest: heatvals = rand(4,40); % r...

7 Monate ago | 0

| accepted

Answered

Lookup values in other table that has a range of values

Something like this would add the gamma variable to your first table, BUT it's matching to nearest gamma rophole12.gamma = inte...

Lookup values in other table that has a range of values

Something like this would add the gamma variable to your first table, BUT it's matching to nearest gamma rophole12.gamma = inte...

7 Monate ago | 0

| accepted

Answered

Three dimensional averages?

You can specify the dimension of averaging: Average or mean value of array - MATLAB mean (mathworks.com) M = mean(A,dim) M = m...

Three dimensional averages?

You can specify the dimension of averaging: Average or mean value of array - MATLAB mean (mathworks.com) M = mean(A,dim) M = m...

7 Monate ago | 0

| accepted

Answered

How to fit multiple curves to histogram subpopulations?

You could fit a distribution to the histrogram using histfit or fitdist, then identify the number of modes or peaks, N. Then fi...

How to fit multiple curves to histogram subpopulations?

You could fit a distribution to the histrogram using histfit or fitdist, then identify the number of modes or peaks, N. Then fi...

8 Monate ago | 1

Answered

how is keep the output values in program?

you can use save and load, here is a quick example: % run once, save results x = 1; y = x+1; save('case1.mat') % modify a...

how is keep the output values in program?

you can use save and load, here is a quick example: % run once, save results x = 1; y = x+1; save('case1.mat') % modify a...

8 Monate ago | 0

Answered

Calculate area from a signal

You can use trapezoidal rule: see trapz: Trapezoidal numerical integration - MATLAB trapz (mathworks.com) area = trapz(x,y) % i...

Calculate area from a signal

You can use trapezoidal rule: see trapz: Trapezoidal numerical integration - MATLAB trapz (mathworks.com) area = trapz(x,y) % i...

8 Monate ago | 0

| accepted

Answered

Phantom cine format and Photron mraw

I don't think there is a built in method, but using fread you can open mraw format. I used this one in the past: Reader class f...

Phantom cine format and Photron mraw

I don't think there is a built in method, but using fread you can open mraw format. I used this one in the past: Reader class f...

8 Monate ago | 0

Answered

How to use a filename character array as a name of a variable?

You can use EVAL (see Stephen's comment to why this can cause error) [~,varname]= fileparts(filename) data = [....]; % your da...

How to use a filename character array as a name of a variable?

You can use EVAL (see Stephen's comment to why this can cause error) [~,varname]= fileparts(filename) data = [....]; % your da...

8 Monate ago | 0

Answered

Early detection system of diabetic retinopathy using eye images by using matlab

If you have some labeled data you can try make a classifier see these examples Create Simple Image Classification Network - MAT...

Early detection system of diabetic retinopathy using eye images by using matlab

If you have some labeled data you can try make a classifier see these examples Create Simple Image Classification Network - MAT...

8 Monate ago | 0

Answered

Solving an implicit equation (iteration)

The formula has the form of an atracting fixed point if it looks like A=f(A) (and other conditions see the links below), then yo...

Solving an implicit equation (iteration)

The formula has the form of an atracting fixed point if it looks like A=f(A) (and other conditions see the links below), then yo...

8 Monate ago | 0

| accepted

Answered

Resampling a signal without using built-in command

Regarding t: Your time intervals don't need to change length just the step size. Regarding x_a: you need to keep only the sampl...

Resampling a signal without using built-in command

Regarding t: Your time intervals don't need to change length just the step size. Regarding x_a: you need to keep only the sampl...

8 Monate ago | 0

Answered

Solution of implicit function - how to plot implicit functions?

Based on the equation you posted, the variable A=2*pi needs to be squared when it's inside the square root. But your code doesn'...

Solution of implicit function - how to plot implicit functions?

Based on the equation you posted, the variable A=2*pi needs to be squared when it's inside the square root. But your code doesn'...

8 Monate ago | 1

| accepted

Answered

Finding the frequency spectrum of a list of column data

Here are three options 1) My favorite is to use pspectrum(data,fs). Where fs is sample frequency. For more information 'doc ps...

Finding the frequency spectrum of a list of column data

Here are three options 1) My favorite is to use pspectrum(data,fs). Where fs is sample frequency. For more information 'doc ps...

8 Monate ago | 0

Answered

Plotting the range of a variable with defined intervals.

The plot documentation shows you can specify the type of line and markers like this x=0:0.1:1; % use colon notation to create a...

Plotting the range of a variable with defined intervals.

The plot documentation shows you can specify the type of line and markers like this x=0:0.1:1; % use colon notation to create a...

8 Monate ago | 0

Answered

With two different initial values I am getting two different answers in fsolve. How to decide which one is more reliable?

The results are almost the same, but you can take a look at the display for each iteration see fsolve documentation, here is an ...

With two different initial values I am getting two different answers in fsolve. How to decide which one is more reliable?

The results are almost the same, but you can take a look at the display for each iteration see fsolve documentation, here is an ...

8 Monate ago | 0

Question

Incorrect font size for tiledlayout in livescript output [Bug?]

Using tiledlayout in a livescript does not output with the correct font size for the axis. Is this a bug? See example below, ...

10 Monate ago | 1 answer | 1

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 2 Jahre ago