Réponse apportée
How to fix: Index Exceeds Matrix Dimensions
You forgot to index |entropy| inside your loop (and pre-allocation, and you forgot to push the *{}Code* button after selecting y...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to average Multiple months of 2D data
<https://www.mathworks.com/help/releases/R2017b/matlab/ref/mean.html |mean(data,4)|> Also: <https://www.mathworks.com/matlabc...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Change While condition based on if statement
This is not elegant, but it achieves your goal: while ((PN == 1 || APN == 1) && Time<10) || ... (~(PN == 1 || AP...

plus de 8 ans il y a | 0

Réponse apportée
I modified Easter.m to give me how many times and on what dates Easter occurs in March/April in a century. How would I use that to make a vector to check for all the dates Easter can't occur?
All the functions you use support array inputs, so you only need to change you if-statements to logical indexing (use the condit...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to remove unnecessary pixels on a line on a binary image?
<https://www.mathworks.com/help/images/ref/bwmorph.html |bwmorph(BW,'skel',Inf);|> should do the trick.

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How to read and plot an off file?
There is a function that should be able to read off files on the <https://www.mathworks.com/matlabcentral/fileexchange/5355-tool...

plus de 8 ans il y a | 0

Réponse apportée
Is it possible to use urlfilter to scrape strings?
Sure. You can simply download it <https://www.mathworks.com/matlabcentral/fileexchange/44751-url-filter here> from the File Exch...

plus de 8 ans il y a | 0

Réponse apportée
How can I find "d" in the following equation, using Matlab?
This is not a Matlab question. Learn the tool you are using before you attempt to solve problems with it. One of the many free o...

plus de 8 ans il y a | 1

Réponse apportée
How to find the maximum value
You can specify the dimension |max| should operate on, so you can insert your matrix. See the documentation for instructions. ...

plus de 8 ans il y a | 1

Réponse apportée
how to convert a single row matrix into a number (double)
a=[1 2 3 4 5]; b=str2double(sprintf('%d',round(a))); Another method would be to use positional information: a=[1 2 ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Finding coordinates of a fourth point from 3 known points of fixed distance in 3D?
I don't get any errors for the code below. Note that there may be two solutions and that this code returns the result in the for...

plus de 8 ans il y a | 0

Réponse apportée
How to get RGB values from x,y coordinates
<https://www.mathworks.com/help/images/ref/xyz2rgb.html> (z is just to complete the triplet, in general z=1-x-y) Note: Make s...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How do I get the values of x at y=0.67 and y=0.87
You can reverse the formula with pen and paper (and maybe some Wolfram-Aplha), interpolate with a function like |interp1|, or so...

plus de 8 ans il y a | 1

Réponse apportée
How to use or buy a student version of Matlab
I have a button in the top bar 'How to buy', which leads to <https://www.mathworks.com/store?s_cid=store_top_nav&s_tid=gn_store ...

plus de 8 ans il y a | 0

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 8 ans il y a

Réponse apportée
How to automatize plot redraw for different initial data?
Just put this code in a function. You can then use |guidata| to store and load that initial value, and set it as the |KeyPressFc...

plus de 8 ans il y a | 0

Réponse apportée
Issue Plotting x and y coordinates
You see a line, because the standard format for |plot| is a blue line going straight from one point to the next. You can look in...

plus de 8 ans il y a | 0

Réponse apportée
How do i calibrate multiple sub plots to the same colorbar
You can't link the |colorbar| itself. You will have to use the same <https://www.mathworks.com/help/releases/R2017b/matlab/ref/c...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
how to save excel to a specific folder
Use an explicit path to your file, e.g. like this: xlswrite('C:\data\sheet.xlsx',A) This is mentioned in the documentati...

plus de 8 ans il y a | 3

| A accepté

Réponse apportée
How do get past the first interation in this nested loop?
The problem lies with your condition in the |while| command. It keeps executing while some statement is true, not until some sta...

plus de 8 ans il y a | 3

Réponse apportée
how to save the filled region to as an image
You can create a binary mask in your desired resolution with <https://www.mathworks.com/matlabcentral/fileexchange/43381-intrian...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How do I concatenate two given signals as one without simulink?
Concatenation should be covered in any basic Matlab course (e.g. <https://matlabacademy.mathworks.com/R2017b/portal.html?course=...

plus de 8 ans il y a | 2

| A accepté

Réponse apportée
Table delete rows with specific value in column
T = table(); T.c1 = [1 2 1 1 1 2 1 2 2 ]'; T.c2 = ['a' 'a' 'a' 'b' 'b' 'a' 'a' 'a' 'b']'; T.c3 = ['a' 'b' 'a' 'a' 'b'...

plus de 8 ans il y a | 3

| A accepté

Réponse apportée
How to improve speed when printing multiple images inside a for loop
It is also possible |print| is inherently slower than it could be, in which case the <https://www.mathworks.com/matlabcentral/fi...

plus de 8 ans il y a | 1

Réponse apportée
How to use the "subplot" and "arrayfun" command correctly?
Do you mean something like this? (note that I changed the input to |plot|, as well as the creation of |t|) Ts = [0.05 0.01 ...

plus de 8 ans il y a | 0

Réponse apportée
State Change Callback on Slider Causing Error if Changed Too Fast
Include a flag in your handles struct that returns the callback if there is already a callback being executed. function you...

plus de 8 ans il y a | 0

Réponse apportée
How do I draw and ROTATE A RECTANGLE
Most of the legwork is done by the assignment. Now you just need to read the doc for <https://www.mathworks.com/help/releases/R2...

plus de 8 ans il y a | 1

Réponse apportée
indexing within parfor loop
|parfor| loops don't like temporary variables, because it will not be able to guarantee which assignment will be the last, so it...

plus de 8 ans il y a | 0

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

plus de 8 ans il y a | 2

| A accepté

Charger plus