Answered
How can i get non-pixalated smooth line in graph?
There was an entirely new graphics system released in R2014b: HG2. See <https://www.mathworks.com/help/matlab/graphics-changes-i...

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 1

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 1

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 1

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

9 years ago | 1

| accepted

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 1

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

9 years ago | 0

Solved


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

9 years ago

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 3

| accepted

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

9 years ago | 3

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

9 years ago | 0

| accepted

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

9 years ago | 2

| accepted

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

9 years ago | 3

| accepted

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 0

Load more