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

más de 8 años hace | 0

Respondida
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=<...

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 1

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

más de 8 años hace | 0

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 1

Respondida
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,...

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 1

Respondida
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); ...

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

Respondida
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=...

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

Respondida
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]; ...

más de 8 años hace | 2

| aceptada

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

más de 8 años hace | 1

| aceptada

Respondida
error associated with Nargin
I just tested to confirm. For some odd reason you could use the |nargin| function in a script m-file. This returned the value fo...

más de 8 años hace | 1

Cargar más