Answered
HI All ,Here i want to Reshape 2D images into 1D image vectors , why i get this error ? Error using '?? Transpose on ND array is not defined. Error in testauto (line 14) temp = reshape(img',r*c,1); .please help its urgent Thanks.
Not enough information, but it is likely that the image you are reading is a color image and is actually r by c by 3. I will als...

7 years ago | 0

| accepted

Answered
I have a 2 D matrix where each column is a set of data that is Weibull distributed. I want to use wblfit to get the parameters for each column of data without using for loop.
This should work faster than an explicit for loop: Result = splitapply(@(x1){wblfit(x1)},X,1:size(X,2)); Then each group...

7 years ago | 0

| accepted

Answered
Merging several row vectors in a single matrix
Naming your vectors A1,A2,A3 ... then assembling them like this is very inefficient. You want to either load them directly into ...

7 years ago | 0

| accepted

Answered
Compute that portion of a surface above a threshold
The problem here is that you appear to be committing a fundamental fallacy in how discrete data work. In your example case, you ...

7 years ago | 0

| accepted

Answered
How can I give my fit plot the same color as the data points?
Not super clear description, a picture would help but: Are you sure you don't mean to use the 'Color' property instead of 'ma...

7 years ago | 0

| accepted

Answered
how can I write the time function when I am plotting the convolution of two time continuous signals?
This question shows a lack of fundamental understanding of convolution. Make sure to read up on what convolution/correlation is ...

7 years ago | 0

Answered
machine learning and image segmentation
I will give you a very rough suggestion with many assumptions, but this is the best I can do with the given information. It shou...

7 years ago | 0

Answered
How can I convert known GPS coordinates to image pixels, and again image pixels to world GPS coordinates?
A simple start would be to get any two points: dx = abs(point2gpsx - point1gpsx)/abs(point2imagex - point1imagex) So by...

7 years ago | 0

Answered
How do I read multiple images into matlab and save them in cells?
This is not directly solving your problem, but if you use the following instead, it will either work, or help you better figure ...

7 years ago | 0

| accepted

Answered
Using markup from an included file
I don't believe you can achieve this as easily as you want. The only way I can think of is: - Publish the markup file separat...

7 years ago | 0

Answered
max between 2 timeseries signals
Maybe C=max(A.Data,B.Data)? You problem definition is a little vague, what exactly are you trying to find?

7 years ago | 0

Answered
How can I create a generic vector containing other objects?
So you want a <https://www.mathworks.com/help/matlab/ref/cell.html Cell> array? Question is unclear.

7 years ago | 0

Answered
Plotting a line which would include 95% of points above and below the regression line
Find your residual vector. Use prctile() on the residual vector to find the points at your upper and lower bounds. Solve t...

7 years ago | 0

| accepted

Answered
I need to produce a matrix that has one's along the diagonal from the upper right to the lower left
x(1:1:n,n:-1:1) =1; You cannot index points inside a matrix like that. MATLAB indexing reads like this: Matrix(a,b) => F...

7 years ago | 1

Answered
image processing with parallel computing gives incorrect results
I am not very knowledgeable with the implementation of ParFor, but I would wager a guess the problem is your indexing: specifica...

7 years ago | 0

Answered
Pulling matrix column data out of a cell
Say your Cell array is C: D = cell2mat(C); E = reshape(D(:),[500 29*6]); Now every 500 by 29 chunk in E is a matrix y...

7 years ago | 0

| accepted

Answered
How can I create a cell array by combining arrays?
maybe this? <https://www.mathworks.com/help/matlab/ref/mat2cell.html mat2cell> it is unclear what you are trying to accompli...

7 years ago | 1

Answered
I'm trying to create a matrix of odd numbers, and I'm having some trouble. Any ideas? Thanks
You might have meant to do: odds = 1:2:lim as it is unclear what nums is in the scope of this function.

7 years ago | 0

Answered
Transformation of variables in regression
You can use my <http://www.mathworks.com/matlabcentral/fileexchange/34918-multivariate-polynomial-regression MultiPolyRegress>. ...

7 years ago | 0

Answered
What is the convolution of two probability distribution estimate (ksdensity in matlab)?
Use: [f,xi] = ksdensity(x,pts) To sample them at the same points, even if you have to sample a long tail of zeros to do ...

7 years ago | 0

| accepted

Answered
3D Voxel mask from geometry/ does plane intersect with volume
Well, the first problem you define is slightly more problematic, but the actual task you mention is easier. A Voronoi tessell...

7 years ago | 0

| accepted

Answered
How can a logical vector be converted to a numeric vector in which the values represent the number of zeros between ones?
Something along the lines of: x = [1;1;1;0;0;1;0;1]; inds = find(x); diffs = [inds(2:end);0]-inds; diffs(end) = 1; y...

7 years ago | 0

| accepted

Answered
Interpolating between calling specific elements of the table
Had something like this already, here it is: function out=R134a(P,a) % Your Table M=[60 -36.9 0.0007098 0.3112 3...

7 years ago | 0

| accepted

Answered
How to reduce the rmse for a fit obtained using curve fitting toolbox
Read up on the concepts of Overfitting, Underfitting, Variance and Regression. You are fitting a function of 3 variables to 3 da...

7 years ago | 0

| accepted

Answered
reconstruct 3D image
Too vague to answer directly, but here are two helpful tips: 1) Whatever you are doing, in the end you need to stack the imag...

7 years ago | 0

Answered
Convolution of 2 image
See if the first half of this helps: <https://ahmetcecen.github.io/blog/class/2016/10/04/Filtering/> Convolution and filte...

7 years ago | 0

Answered
Hello! I am new to matlab. I just want to execute a simple GUI code in which i can display an image from base workspace through callback function(pushbutton1).
I don't have the time to write the actual thing here at the moment, but check one of my simpler GUIs here to see how it is done:...

7 years ago | 0

Submitted


Image Correlation and Convolution for Large Data
Applies a Patched Convolution Scheme to compute 2D and 3D image auto and cross correlations.

8 years ago | 4 downloads |

Thumbnail

Load more