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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 1

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 1

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

| accettato

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

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

circa 6 anni fa | 0

Risposto
I would like to import data from an STL file of a 3D object to MATLAB and create a 2D contour plot of it. Does anyone have any ideas about this? Thanks!
STL files have a very specific format you can exploit to gather your data automatically. Try using "textscan" followed by "strsp...

oltre 6 anni fa | 0

Risposto
how to set a value for a slider in GUI and connect it to an edit box?
I am unable to write this out for you at the moment (not near a computer), but here is an app I wrote that does that. You should...

oltre 6 anni fa | 0

Risposto
how do i label objects in an image which is quite unclear? When i make it bw, objects overlapping get labelled as a single object. I want to be able to call each object seperately.
Look up circular Hough transform. https://en.wikipedia.org/wiki/Circle_Hough_Transform http://www.mathworks.com/help/image...

oltre 6 anni fa | 0

| accettato

Carica altro