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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 1

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

más de 8 años hace | 1

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

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

más de 8 años hace | 0

Resuelto


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

más de 8 años hace

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 3

| aceptada

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

más de 8 años hace | 3

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 2

| aceptada

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

más de 8 años hace | 3

| aceptada

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

más de 8 años hace | 1

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 1

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

más de 8 años hace | 0

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

más de 8 años hace | 2

| aceptada

Cargar más