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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

Risolto


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

oltre 8 anni fa

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 3

| accettato

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

oltre 8 anni fa | 3

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 2

| accettato

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

oltre 8 anni fa | 3

| accettato

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 2

| accettato

Carica altro