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

casi 5 años ago | 0

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

casi 5 años ago | 0

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

casi 5 años ago | 0

| accepted

Answered
Smart indent and comments
if true a = 1 % a = a+1 disp(a) end Is the customary way to comment a line, so that you can see a line is comm...

casi 5 años ago | 0

Answered
how to draw a 3-D frequency Distribution map with 3 differentlabels?
This is a very lazy solution, and there will be some tearing in graphics so you have to move the view around to get it right: ...

casi 5 años ago | 0

| accepted

Answered
Perspective and STLs: how to create thinning edges along a 3D shape?
Simply writing: R = view; will yield a proper rotation matrix for the current view like: 0.4384 0.8988 ...

casi 5 años ago | 0

| accepted

Answered
I need to insert multiple 32x32 arrays into 1024x1024 array at predetermined random locations. How to do this efficiently?
If your small array will always be the same, you might be able to do this lightning fast with a convolution. Instead of using th...

casi 5 años ago | 1

Answered
segmentation is after reconstruction of 3D volume (from a stacks of 2D images) or before
Depends on how those stacks were obtained. Segmentation in 3D is much harder than in 2D, but allows for much higher accuracy ove...

casi 5 años ago | 0

Answered
Creating a Matrix from a given Vector.
Check "diag" function.

casi 5 años ago | 0

Answered
Can i use function get.handles in prompt?
If you put a dbstop in the script, you can access "handles" and associated methods.

casi 5 años ago | 0

Answered
Is there a way for creating n number of new rows from one row?
A much more robust version of that reference answer, especially if you need to repeat every row the same amount of times, and yo...

casi 5 años ago | 0

Answered
How to easily detect all the equal rows of an array with saving the indices of the elements?
This does all of that: [C,ia,ic] = unique(A,'rows')

casi 5 años ago | 0

Answered
Help diagnosing PC restart issue while computing matrix pseudo inverse
Your machine wouldn't just restart for insufficient memory, and in the case of faulty memory, the machine usually freezes. If yo...

casi 5 años ago | 0

Answered
How can I get all text from a website, NOT the html of the website?
http://www.mathworks.com/matlabcentral/answers/98555-how-can-i-read-an-html-file-into-matlab-and-discard-the-html-tags

casi 5 años ago | 0

| accepted

Answered
What is the mathematical proof for the formula to find angle between 3 points in an image?
https://en.wikipedia.org/wiki/Scalar_projection https://en.wikipedia.org/wiki/Cross_product Get the expression for sine an...

casi 5 años ago | 0

Answered
how to insert the column [60;80] into the third column
A(:,3) = A(:,3) + [60;80];

casi 5 años ago | 0

Answered
How can I read the elements of an array backwards?
It appears to me that you are trying to do something very simple in a very convoluted way, probably due to programming practices...

casi 5 años ago | 1

| accepted

Answered
Segmenting bones using Neural Network
If you do enough of these by hand first (different extreme cases hopefully around 25), you can create a library of bones, as I i...

casi 5 años ago | 2

Answered
Deleting rows until a certain point
You can find the point by something along the lines of (you also pay attention to the dimensions of vectors, I didn't): data...

casi 5 años ago | 1

Answered
How can i start one program from another and then run them parallelly?
Chekout "parfeval": http://www.mathworks.com/help/distcomp/parfeval.html

casi 5 años ago | 0

| accepted

Answered
Multi-feature matrix regression?
Use the function I created expressly for this purpose. And you are in luck, a lightning fast Leave One Out Cross Validation is a...

casi 5 años ago | 0

| accepted

Answered
Image Prcoessing - Automatic Region of Interest Extraction - Help!!
Ok here is what I could do in 5 mins with my above suggestions and a little more: 1. Get Blue channel with the green line on ...

casi 5 años ago | 0

| accepted

Answered
I have an m file routine. How can I store the file along with its calling m file tree?
Try [fList, pList] = matlab.codetools.requiredFilesAndProducts(MainRoutines);

casi 5 años ago | 0

Answered
Optimization code. One line takses 86% of working time.
for k = 1 : K IND = label_n == k; prob_k = Probability(k); grad(k,:) = grad(k,:) ...

casi 5 años ago | 1

Answered
Image Prcoessing - Automatic Region of Interest Extraction - Help!!
Since you didn't provide a clean image, I can only speculate. My strategy would be: # The region of interest seems "bluer" th...

casi 5 años ago | 0

Answered
corr2 function with complex vectors.
If you have 2 complex vectors, why not just use corr instead? It should give you a valid coefficient.

casi 5 años ago | 0

Answered
Correlation between two datasets
There are 3 ways I am aware of that you can do this: # You find a way to make them have the same number of points and use the...

casi 5 años ago | 0

Answered
How to work with big data?
Use: M = dlmread(filename,delimiter,[R1 C1 R2 C2]) To access the file in chunks.

casi 5 años ago | 0

| accepted

Answered
What is the matlab code for this R code?
if DD>0 IC1= (-B-sqrt(DD))/(2*A) IC2= (-B+sqrt(DD))/(2*A) if A>0 rej_fi=rej_fi+(Theil0>IC2 || Theil0<IC1)...

casi 5 años ago | 0

| accepted

Answered
How can I write a large audio file without having to store the whole thing in memory at once?
I don't believe a piece-wise write exists yet for audio files. Until a better answer shows up, I would suggest: # If your mem...

casi 5 años ago | 0

Load more