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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 2

| accettato

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 1

Carica altro