Hi, I'm nobody.

I don't belong here, but I have nothing better to do.

Matlab used to be part of my work.

Now it's part of my hobbies.

That's pretty sad, really.

Answered

figure view direction issue

The problem you're having is improper correspondence between your axes. I think you're presuming that the loop is a known good ...

figure view direction issue

The problem you're having is improper correspondence between your axes. I think you're presuming that the loop is a known good ...

environ 17 heures ago | 1

| accepted

Answered

How to save each column in E drive of computer?

Consider the simple example: A=rand(500,10); % placeholder data for f=1:size(A,2) outname=sprintf('output_%06d.mat',f); % ...

How to save each column in E drive of computer?

Consider the simple example: A=rand(500,10); % placeholder data for f=1:size(A,2) outname=sprintf('output_%06d.mat',f); % ...

1 jour ago | 0

| accepted

Answered

how can I Compute the value of d for the following values of x , Outcome equation d=((34.63/x)-5.126)/2.54

I have no idea what that code is intended to do, but if you just want to evaluate the expression all x: x=[0.1000,0.1500,0.2000...

how can I Compute the value of d for the following values of x , Outcome equation d=((34.63/x)-5.126)/2.54

I have no idea what that code is intended to do, but if you just want to evaluate the expression all x: x=[0.1000,0.1500,0.2000...

1 jour ago | 1

Answered

Strange behavior of if statement

It's correct. The sum isn't 1. It's approximately 1. d = [0.4 0.1 0.1 0.1 0.1 0.1 0.1]; % leading zeros for readability, pls ...

Strange behavior of if statement

It's correct. The sum isn't 1. It's approximately 1. d = [0.4 0.1 0.1 0.1 0.1 0.1 0.1]; % leading zeros for readability, pls ...

1 jour ago | 0

Answered

Gaussian filters returned by fspecial() with asymmetric size parameter

I suppose I can't answer the motivation/utility question, but I can say that imgaussfilt() uses gaussian kernels that accept vec...

Gaussian filters returned by fspecial() with asymmetric size parameter

I suppose I can't answer the motivation/utility question, but I can say that imgaussfilt() uses gaussian kernels that accept vec...

2 jours ago | 0

| accepted

Answered

Three-dimensional lower triangular Matrix

Not sure if this is what you're asking, but: A = randi(89,10,10,2)+10; % test array mask = tril(ones(size(A,1),size(A,2))); % ...

Three-dimensional lower triangular Matrix

Not sure if this is what you're asking, but: A = randi(89,10,10,2)+10; % test array mask = tril(ones(size(A,1),size(A,2))); % ...

3 jours ago | 0

| accepted

Answered

Can someone suggest the best way to plot a directional 2D equilateral triangle?

This is incomplete, but it should be a start. r=10; % triangle radius p0=[0 0]; % prior point [x,y] p=[50 50]; % current po...

Can someone suggest the best way to plot a directional 2D equilateral triangle?

This is incomplete, but it should be a start. r=10; % triangle radius p0=[0 0]; % prior point [x,y] p=[50 50]; % current po...

3 jours ago | 0

Answered

I am wondering if this a no output no input function. If it is not what type of function is it?

It certainly doesn't have any input or output arguments, but reading the file with imread() is redundant if using that syntax wi...

I am wondering if this a no output no input function. If it is not what type of function is it?

It certainly doesn't have any input or output arguments, but reading the file with imread() is redundant if using that syntax wi...

3 jours ago | 0

Answered

Remove specific values from array

Something like this: A = [9,1,2,5,1,2,5,1,1,5,2,3,1,2,5,1,2,5,4,1,2,5,10] % input x = [1,2,5,9,10]; % values to keep B = A(is...

Remove specific values from array

Something like this: A = [9,1,2,5,1,2,5,1,1,5,2,3,1,2,5,1,2,5,4,1,2,5,10] % input x = [1,2,5,9,10]; % values to keep B = A(is...

3 jours ago | 0

| accepted

Answered

How to make multiple execution of a code by loop ?

Well, since I don't know what the error message was, then I'll just guess it was this. T=readtable('Outputresults.txt') A=T(...

How to make multiple execution of a code by loop ?

Well, since I don't know what the error message was, then I'll just guess it was this. T=readtable('Outputresults.txt') A=T(...

4 jours ago | 0

Answered

How to isolate object from a background of variable brightness

There are probably more robust methods, but here is my attempt: image=imread('worm.bmp'); im0 = imbinarize(255-rgb2gray(imag...

How to isolate object from a background of variable brightness

There are probably more robust methods, but here is my attempt: image=imread('worm.bmp'); im0 = imbinarize(255-rgb2gray(imag...

4 jours ago | 2

| accepted

Answered

Calculating double integrals over a rectangular region without using built in function.

Your code looks like it should work. The problem is in your assumptions. The double integral over the given area calculates a ...

Calculating double integrals over a rectangular region without using built in function.

Your code looks like it should work. The problem is in your assumptions. The double integral over the given area calculates a ...

4 jours ago | 0

Question

Can the figure toolbar be enabled for docked figures post-R2012b?

Prior to R2012b, docked figures had the regular figure toolbar, just like undocked figure windows. In later versions, there's j...

4 jours ago | 0 answers | 0

Answered

How to create a vector in Matlab

For the first part: x=1:1/216:500; for the second part, what exactly do you need the spaces for? The extra spaces don't actua...

How to create a vector in Matlab

For the first part: x=1:1/216:500; for the second part, what exactly do you need the spaces for? The extra spaces don't actua...

4 jours ago | 0

Answered

Index exceeds the number of array elements (8).

Your loop condition is while i <= length(Q) and the last thing that happens in the loop is i = i+1; so the moment the loop e...

Index exceeds the number of array elements (8).

Your loop condition is while i <= length(Q) and the last thing that happens in the loop is i = i+1; so the moment the loop e...

5 jours ago | 1

Answered

how to get activation key of matlab r2015a

Have you tried this? https://www.mathworks.com/matlabcentral/answers/102845-where-can-i-find-the-activation-key-or-file-install...

how to get activation key of matlab r2015a

Have you tried this? https://www.mathworks.com/matlabcentral/answers/102845-where-can-i-find-the-activation-key-or-file-install...

5 jours ago | 0

Answered

legend problem when plotting netcdf data

It's usually better to give legend the handles associated with the plots: h1=plot(x,thing1,'b'); hold on; h2=plot(x,thing2,'r'...

legend problem when plotting netcdf data

It's usually better to give legend the handles associated with the plots: h1=plot(x,thing1,'b'); hold on; h2=plot(x,thing2,'r'...

6 jours ago | 0

Answered

why my plot is not correct?

I'm not sure what you intend the correct number to be. You're doing the cube root of negative numbers. They're going to be com...

why my plot is not correct?

I'm not sure what you intend the correct number to be. You're doing the cube root of negative numbers. They're going to be com...

6 jours ago | 0

Answered

How can I take the value from an equation and plug it back into the same equation? (Newton-Raphson)

Something like this: function D = down(A, B, C, D, maxiter, tol) % things that are in the argument list don't get rewritten ...

How can I take the value from an equation and plug it back into the same equation? (Newton-Raphson)

Something like this: function D = down(A, B, C, D, maxiter, tol) % things that are in the argument list don't get rewritten ...

6 jours ago | 0

| accepted

Answered

input window in matlab

The dialog is the least of the problems. In general: rep = uigetdir; Imgs = dir(rep); thisname = Imgs(3).name; [path,name,e...

input window in matlab

The dialog is the least of the problems. In general: rep = uigetdir; Imgs = dir(rep); thisname = Imgs(3).name; [path,name,e...

6 jours ago | 0

| accepted

Answered

Adding feasible region on a Contour plot

Like I mentioned, it depends how you want to represent the region. Let's say you want to represent the feasibility region withi...

Adding feasible region on a Contour plot

Like I mentioned, it depends how you want to represent the region. Let's say you want to represent the feasibility region withi...

6 jours ago | 0

| accepted

Answered

How can I fill the scratch after scratch detection?

Without knowing the original image content, you can probably do inpainting with regionfill() https://www.mathworks.com/help/ima...

How can I fill the scratch after scratch detection?

Without knowing the original image content, you can probably do inpainting with regionfill() https://www.mathworks.com/help/ima...

6 jours ago | 0

| accepted

Answered

divide a matrix into small matrices

Something like this: A=randi(89,9)+10 % make an example array B=mat2cell(A,[3 3 3],[3 3 3]) % split the array into 9 arrays ...

divide a matrix into small matrices

Something like this: A=randi(89,9)+10 % make an example array B=mat2cell(A,[3 3 3],[3 3 3]) % split the array into 9 arrays ...

6 jours ago | 0

| accepted

Answered

Dialog boxes to calculate functions

You'll get a numeric output from the menu call. Just do a switch-case structure, and calculate the answer using the correspondi...

Dialog boxes to calculate functions

You'll get a numeric output from the menu call. Just do a switch-case structure, and calculate the answer using the correspondi...

7 jours ago | 0

Answered

how to convert sawtooth signal to a ramp signal

I imagine what you want is unwrap: t = linspace(0,3*2*pi,1000); raw = atan2(sin(t),cos(t)); unwrapped = unwrap(raw); plot(t,...

how to convert sawtooth signal to a ramp signal

I imagine what you want is unwrap: t = linspace(0,3*2*pi,1000); raw = atan2(sin(t),cos(t)); unwrapped = unwrap(raw); plot(t,...

7 jours ago | 0

| accepted

Answered

newton raphson on matlab

I don't know why anyone would make you use x0=0 unless they wanted you to lose your hair. Think about where you are on the curv...

newton raphson on matlab

I don't know why anyone would make you use x0=0 unless they wanted you to lose your hair. Think about where you are on the curv...

7 jours ago | 0

Answered

colormap including gray for out of range

You should be able to use colormapeditor to edit the current cmap or any of the presets. https://www.mathworks.com/help/matlab/...

colormap including gray for out of range

You should be able to use colormapeditor to edit the current cmap or any of the presets. https://www.mathworks.com/help/matlab/...

7 jours ago | 0

Answered

what chroma subsampling does imwrite use for a jpg file, 4:4:4, 4:2:2, or something else?

I know this is an old question, but I just had to figure it out myself; I'm inclined to put answers where they belong. Imwrite ...

what chroma subsampling does imwrite use for a jpg file, 4:4:4, 4:2:2, or something else?

I know this is an old question, but I just had to figure it out myself; I'm inclined to put answers where they belong. Imwrite ...

7 jours ago | 0

Answered

What chroma subsampling rate (e.g., 4:2:0 or 4:2:2) does imwrite use when saving a JPEG image?

I know this is an old question, but I just had to figure it out myself. Imwrite uses 4:2:0 chroma subsampling, and the default ...

What chroma subsampling rate (e.g., 4:2:0 or 4:2:2) does imwrite use when saving a JPEG image?

I know this is an old question, but I just had to figure it out myself. Imwrite uses 4:2:0 chroma subsampling, and the default ...

7 jours ago | 0

Answered

How to Separate the RGB channels from an image and get the average of each RGB channel separetly

I'm feeling particularly lazy today, so I'm not going out of my way to make this solution avoid nonstandard tools. They could b...

How to Separate the RGB channels from an image and get the average of each RGB channel separetly

I'm feeling particularly lazy today, so I'm not going out of my way to make this solution avoid nonstandard tools. They could b...

7 jours ago | 1

| accepted