Risposto
Renaming the X-axis in bargraphs
The code below should work. (note that it is safer to explicitly set the X-tick positions, although that is not necessary in thi...

circa 8 anni fa | 0

| accettato

Risposto
How to check if several variables exist and assign a value to non-existing variables?
Replacing bij chars arrays makes it work, although I wonder about |eval|. It's generally a bad idea, but I don't see a good alte...

circa 8 anni fa | 0

| accettato

Risposto
change dpi from auto to 300 using matlab code?
This code should work. I recognize the |-k| switch from a similar context, but the doc indicates that you should use |-r|. (I us...

circa 8 anni fa | 0

| accettato

Risposto
Send alert mail if matlab/computer shuts down
You should be able to send emails with Matlab, see <https://www.mathworks.com/help/matlab/import_export/sending-email.html this ...

circa 8 anni fa | 0

Risposto
I need to remove the straight line. any ideas on the code? i have try (1:end-1) but it wont work. thanks
Assuming your data is in variables named |t| and |y|, putting the following code before the call to |plot| should fix your issue...

circa 8 anni fa | 0

| accettato

Risposto
Divide points according to quadrant system
You still haven't explained what your question is, so I'm going to assume you want to un-loop this. The code below yields the sa...

circa 8 anni fa | 0

| accettato

Risposto
Plot data for a for specific x and y coordinates
You have holes in your data (i.e. not all grid positions have data). Therefore |surf| will not work. You can either choose to pl...

circa 8 anni fa | 1

| accettato

Risposto
Or statement for input arguments of type 'cell'
The |ismember| function should help you out here, or you can use multiple calls to |strcmp|: T=readtable('r.csv'); if ~(...

circa 8 anni fa | 1

| accettato

Risposto
Where did the "Error handling" menus go in 2018a?
The option is not gone: it was moved to the arrowhead underneath the run button. I had to search for it as well. (and they won't...

circa 8 anni fa | 1

| accettato

Risposto
Can I find 2 points along a 3-dimensional linear line of best fit?
You can write a function that finds the point on the line that is closest to your data line, but this doesn't. It finds two poin...

circa 8 anni fa | 1

| accettato

Risposto
How can I create a linear line of best fit for a set of 3-dimensional coordinates?
You could do something like the code below, although I doubt that is what you want (the trend looks like a parabola to me), nor ...

circa 8 anni fa | 0

| accettato

Risposto
How to make intercept 0 in fitlm?
If you just want the value for x1: A = [3 ; 6 ; 9 ; 12 ; 15 ; 18 ; 21 ; 24]; b = [13.65249633; 27.43151638; 40.81176096;...

circa 8 anni fa | 1

| accettato

Risposto
Meshgrid multi-valued function data
You should use |hold on| to plot multiple parts. The code below is a fix to your code. radius=3; x = linspace(-radius,ra...

circa 8 anni fa | 0

| accettato

Risposto
Plot with mean and std of variables
Just use |sprintf| and the |mean| and |std| functions: Plot1=plot(T,X); hold on Plot2=plot(T,Y); Plot3=plot(T,Z); ...

circa 8 anni fa | 0

| accettato

Risposto
GUI Pushbutton, display user input?
You should read up on |guidata| to read up on how to share data between callbacks of a GUI. A callback is not run when you creat...

circa 8 anni fa | 0

| accettato

Risposto
Change all matrix elements from x to 1/x
X=1./X; Use a dot for element-wise division and multiplication.

circa 8 anni fa | 1

| accettato

Risposto
Significance of writing (_,'uni',0)
If you have a look at the <https://www.mathworks.com/help/matlab/ref/cellfun.html#namevaluepairarguments doc>, you can see what ...

circa 8 anni fa | 1

| accettato

Risposto
Problem Plotting with Log Scale in GUI
'poofing' variables into existence is not a good idea. If you |load| from a .mat file, at least use the struct output option. Th...

circa 8 anni fa | 0

| accettato

Risposto
find the index of non-zero elements of three dimensional matrix and rank the them according to the value
You can use my FEX submission <https://www.mathworks.com/matlabcentral/fileexchange/64383-findnd |findND|>. A=randi(10,[10 ...

circa 8 anni fa | 0

| accettato

Risposto
How to find difference in homegenity of pixels in two images
You are referring to <https://www.mathworks.com/matlabcentral/fileexchange/55034-glcmfeatures-glcm- this FEX entry>. The numb...

circa 8 anni fa | 0

Risposto
WindowScrollwheelFcn in a GUI
You have the target figure open. You probably have the selector mode on (the mouse cursor icon in the menu bar), or maybe the pa...

circa 8 anni fa | 1

| accettato

Risposto
How can i count the sum of the gray level value in a segmented region
The code below should work IM=double(imread('corn.tif',3))/255; polygon_x=[109;142;166;178;155;131;112;124;125;116;102;8...

circa 8 anni fa | 0

Risposto
Visuall Studio 2013 and Matlab 2017b
You can find the full list of supported compilers for R2017b <https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/...

circa 8 anni fa | 0

Risposto
How can I fix this error - "Error using * Inner matrix dimensions must agree"
If you want to do an element-wise calculation, you should use |.*| instead of |*|. Otherwise, Matlab assumes you want to do a ma...

circa 8 anni fa | 1

Risposto
gene contains only ATGC
You just want to remove the invalid letters? The code below will do that. If you want to check if a gene string is invalid you c...

circa 8 anni fa | 1

| accettato

Risposto
How do I make this type of tree in matlab using scatter?
How about |imshow| (or |image|)? You have a matrix anyway: imshow(a) will show your image (although a bit small). You ca...

circa 8 anni fa | 0

| accettato

Risposto
My slider disappears and it comes up with that error
Replace set(handles.SliderFrame,'Value',S); with if S>get(handles.SliderFrame,'Max') S=get(handles.SliderFr...

circa 8 anni fa | 1

| accettato

Risposto
how to adjust plot with GUI slider without GUIDE
You don't use the actual value of the slider, so nothing will change. function sound_g(hObject,~) val=get(hObject,'Value...

circa 8 anni fa | 1

Risposto
Matlab Calculates mod(2^1000,10^23) wrong
If you want this much precision, maybe you should use a different method. |2^1000| is a 301 digit number. It will take at least ...

circa 8 anni fa | 0

Carica altro