Answered
Convert DICOM video (4D) to 3D matrix
If it saves your data as an RGB image, one of the dimensions will be 3. You can find the size of your matrix with the |size| fun...

9 years ago | 2

| accepted

Answered
How do I visualize a 4D matrix as a pointcloud like plot?
You could use |plot3| in a loop for every unique color, but that could be extremely slow (if you have many unique colors), and d...

9 years ago | 0

Answered
how to draw a 3d plot with different color?
Logical indexing is your answer: scatter3(x(z>0.2),y(z>0.2),z(z>0.2),'b.') hold on scatter3(x(z=<0.2),y(z=<0.2),z(z=<...

9 years ago | 1

| accepted

Answered
How to pass a function workspace into a guidata handles structure in a GUI
Why don't you convert |Drive_Matlab| to a function that returns its variable as fields of a struct? You can put the save/load tr...

9 years ago | 0

| accepted

Answered
Face aspect ratio.
If you have a mask, using |find| it the easiest method to get the rows and cols. Then it is trivial to calculate the aspect rati...

9 years ago | 0

Answered
How to center a multi choice menu
If you don't insist on using the |menu| function, but use the |dialog| function instead, you can use the Position property. You ...

9 years ago | 1

Answered
How to extract slider values from one .m file to another .m file
get(handle_to_slider,'Value')

9 years ago | 0

Answered
Can someone help me fix my axis?
You may notice that the 0 on the y-axis is not there is your screenshot. Because 10^4 to 10^6 is such a wide range, you don't no...

9 years ago | 1

| accepted

Answered
How to remove zeros from end of different sizes of rows of matrix?
This impossible with matrices in Matlab. What you can do is using a cell vector where each cell contains to trailing zeros.

9 years ago | 1

Answered
How can I use a slider to step through an array of images?
Use |guidata|. Setting a value of S doesn't change anything now. to re-run |imshowpair(A{S},C{S},'montage')| you will need A,...

9 years ago | 0

Answered
Extract patches and save its coordinate points
You <https://www.mathworks.com/matlabcentral/answers/378889-image-patch-extraction-from-given-co-ordinate previous question> sug...

9 years ago | 0

| accepted

Answered
Image patch extraction from given co-ordinate
Your image is not 4D. It has 3 dimensions, unless what you posted in your question is not true. patch{i}=IM(x(i)+[-8 8],y(i...

9 years ago | 1

| accepted

Answered
Executing MATLAB script inside LATEX editor like TexStudio
Not directly, as far as I can tell, but this post should give you an idea of how you can tackle this problem: <http://staffwww.d...

9 years ago | 0

Answered
Outputting list of times and corresponding voltages
<https://matlabacademy.mathworks.com/R2017b/portal.html?course=gettingstarted> t=linspace(0,4,30); v=10*exp(-4*t).*cos(4...

9 years ago | 1

Answered
Loop filenames into cell array that has numbers
mat = dir('*.mat'); nmat = length(mat); new = cell(nmat,2); for q = 1:nmat matdata = load(mat(q).name); ...

9 years ago | 0

Answered
I want to calculate volume under 2D eclipse, Can anyone tell me how can I do this?
You can count the number of pixels by summing the logical representation of your images.

9 years ago | 0

Answered
vectors must be the same length
You used the variable |x| in your definition of |ya|, which results in |xa| being length 10 and |ya| being length 5. x = [3...

9 years ago | 0

Answered
Problemas al actualizar variables en el Gui al precionar un pushbutton
You increase your chances of getting an answer by posting in English. My Spanish is good enough to read your question, but not t...

9 years ago | 0

| accepted

Answered
Evaluate triple summation in MATLAB
And what have you tried so far? You can do this with a triple nested loop, or with the |meshgrid| function.

9 years ago | 0

Answered
matlab gui error handles.slider
The information is in the error: |handles.slider| is an object, not a value. If you want to use the value property, use |get(han...

9 years ago | 0

| accepted

Answered
Known one element in my vector,how to solve the other elements?
If both k and f are known, why can't you just use this (Note that it is not always possible to find the inverse matrix): d=...

9 years ago | 0

Answered
How can I get the model from cftool?
You can go to 'File' and then select the option 'Generate code'. It will generate an .m file that contains all relevant function...

9 years ago | 0

Answered
Please help me to solve the issue for the following code
You have a working answer <https://www.mathworks.com/matlabcentral/answers/379198-could-anyone-tell-me-how-to-replace-the-value-...

9 years ago | 0

| accepted

Answered
num2cell question regarding condensing
You can use <https://www.mathworks.com/help/releases/R2017b/matlab/ref/mat2cell.html |mat2cell|>: C=mat2cell(A,[10],ones(25...

9 years ago | 1

Answered
Find if a point is inside tetrahedron
The FEX submission <https://www.mathworks.com/matlabcentral/fileexchange/43381-intriangulation-vertices-faces-testp-heavytest- i...

9 years ago | 0

Answered
License Manager Error -9
See <https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9 here>.

9 years ago | 0

Answered
How can I change my user id ? It was inadvertantly changed and I just want to restore it
This is something you need to contact Mathworks support for. Most contributors here are volunteers and not Mathworks staff. You ...

9 years ago | 0

Answered
I have a 4x5 matrix (D) and I want to assign each column to a variable to call the columns out. How would I do so?
D = [0.035 0.0001 10 2; 0.020 0.0002 8 1; 0.015 0.0010 20 1.5; 0.030 0.0007 24 3; 0.022 0.0003 15 2.5]; D_temp=mat2cell(D,5...

9 years ago | 0

| accepted

Answered
if else statement for elemental comparison
The logical indexing shouldn't be used in combination with an if-statement. Let me give you a small example: a=[3 5 6]; ...

9 years ago | 2

| accepted

Answered
Can Cody Coursework be used for paid online courses?
<https://coursework.mathworks.com/terms_of_use Nope.>

9 years ago | 1

| accepted

Load more