Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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=<...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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 ...

plus de 8 ans il y a | 1

Réponse apportée
How to extract slider values from one .m file to another .m file
get(handle_to_slider,'Value')

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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.

plus de 8 ans il y a | 1

Réponse apportée
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,...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

Réponse apportée
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); ...

plus de 8 ans il y a | 0

Réponse apportée
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.

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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=...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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-...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

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

plus de 8 ans il y a | 0

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

plus de 8 ans il y a | 0

Réponse apportée
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 ...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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]; ...

plus de 8 ans il y a | 2

| A accepté

Réponse apportée
Can Cody Coursework be used for paid online courses?
<https://coursework.mathworks.com/terms_of_use Nope.>

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

Charger plus