Answered

Resize the images without deforming them

you're trying to resize 200x200 to 100x100 images. scale = 0.5; J = imresize(I,scale); % using scale rather than your final o...

Resize the images without deforming them

you're trying to resize 200x200 to 100x100 images. scale = 0.5; J = imresize(I,scale); % using scale rather than your final o...

11 months ago | 1

| accepted

Answered

I need help on cell array and Imaging processing

figure(); for i = 1:10 subplot(4,5,i); imshow(TestData.Files{i}); end Hi. It's probably your argument for imshow t...

I need help on cell array and Imaging processing

figure(); for i = 1:10 subplot(4,5,i); imshow(TestData.Files{i}); end Hi. It's probably your argument for imshow t...

11 months ago | 0

| accepted

Answered

how to start graph in matlab from the origin?

xlim[yourInitialRange, yourEndRange] % Specifically xlim[0, 100]; % check if it works. % Cheers

how to start graph in matlab from the origin?

xlim[yourInitialRange, yourEndRange] % Specifically xlim[0, 100]; % check if it works. % Cheers

11 months ago | 1

Answered

Change histogram to more bars

This doc for histogram has the info to play with the number of bins in your histogram If you're using such command, you can do ...

Change histogram to more bars

This doc for histogram has the info to play with the number of bins in your histogram If you're using such command, you can do ...

11 months ago | 1

Answered

How to update the value of the variable

Try this workaround clear clc syms forced velocityd densityd density dynamicviscosityd accelerationd Diameterd viscosityd Len...

How to update the value of the variable

Try this workaround clear clc syms forced velocityd densityd density dynamicviscosityd accelerationd Diameterd viscosityd Len...

11 months ago | 0

Answered

Kindly I want know how to use function called ‘carre’, to calculate a square periodic function?

% here you call your function answer = carre(yourInputs) % you insert your inputs, whichever and how many they are. % in t...

Kindly I want know how to use function called ‘carre’, to calculate a square periodic function?

% here you call your function answer = carre(yourInputs) % you insert your inputs, whichever and how many they are. % in t...

11 months ago | 0

Answered

How can I solve it: Matrix dimensions must agree.

if M == [] A(M == []) = []; else % rest of your code here. end Hope that helps. Cheers

How can I solve it: Matrix dimensions must agree.

if M == [] A(M == []) = []; else % rest of your code here. end Hope that helps. Cheers

11 months ago | 0

Answered

n(x)

CODE1) a=[0 1]; % you tell MATLAB a is a vector for r=3:100 % the for loop you understand, right? ...

n(x)

CODE1) a=[0 1]; % you tell MATLAB a is a vector for r=3:100 % the for loop you understand, right? ...

11 months ago | 0

| accepted

Answered

please, how ( index logical work in matlab ) ?

MATLAB does not accept negative indexes if you want to walk through your range. It also starts @ 1. One workaround you can shou...

please, how ( index logical work in matlab ) ?

MATLAB does not accept negative indexes if you want to walk through your range. It also starts @ 1. One workaround you can shou...

11 months ago | 0

Answered

How to remove additional padding

Hi, didn't go through with your images nor the output of normxcorr2, but perhaps this example could help you with a workaround. ...

How to remove additional padding

Hi, didn't go through with your images nor the output of normxcorr2, but perhaps this example could help you with a workaround. ...

11 months ago | 0

Answered

How to write a machine learning algorithm or modifying a machine learning algorithm in matlab?

If you own a MATLAB software with the Statistics and Machine Learning Toolbox, you can run some examples by yourself. This link...

How to write a machine learning algorithm or modifying a machine learning algorithm in matlab?

If you own a MATLAB software with the Statistics and Machine Learning Toolbox, you can run some examples by yourself. This link...

11 months ago | 0

Answered

Error using trainNetwork: Invalid training data. The output size of the last layer does not match the response size.

Hi, Why are you resizing your original images, instead of using transform in your imds? PIPELINE: % create imds imds = image...

Error using trainNetwork: Invalid training data. The output size of the last layer does not match the response size.

Hi, Why are you resizing your original images, instead of using transform in your imds? PIPELINE: % create imds imds = image...

11 months ago | 0

Answered

I need you help to convert this equation to matlab code

Looks funny this exercise. By assigning i to the rand function, it is creating matrices as i increases. So rand(2) creates a 2 ...

I need you help to convert this equation to matlab code

Looks funny this exercise. By assigning i to the rand function, it is creating matrices as i increases. So rand(2) creates a 2 ...

11 months ago | 1

Answered

Automatic bone metastasis segmentation

Nuclear Medicine images are tricky. Is normalization of the images a step of your pipeline? Wouldn't this work? Another workar...

Automatic bone metastasis segmentation

Nuclear Medicine images are tricky. Is normalization of the images a step of your pipeline? Wouldn't this work? Another workar...

11 months ago | 0

| accepted

Answered

Too Many input arguments.

Did you try to use the Deep Network Designer app? You can import your network to the app and click on the analyze button.

Too Many input arguments.

Did you try to use the Deep Network Designer app? You can import your network to the app and click on the analyze button.

11 months ago | 0

Answered

How can I set the number of decimals places displayed on plots and histograms?

Would this work? It has some configurations for x and y axes.

How can I set the number of decimals places displayed on plots and histograms?

Would this work? It has some configurations for x and y axes.

11 months ago | 0

| accepted

Question

function_handle in randomAffine3d - invalid type for 'Shear': expected numeric but function_handle instead.

Hi all, I'm stuck with an issue that it is driving me crazy, because I think I covered all approaches here. I'm getting the er...

11 months ago | 0 answers | 0

Answered

Exponential equation in a graph

Well, if you have already coded your plot, what is the problem to create a figure in matlab? If you have your arrays of x and f...

Exponential equation in a graph

Well, if you have already coded your plot, what is the problem to create a figure in matlab? If you have your arrays of x and f...

11 months ago | 0

Answered

I need a help for MATLAB code problems!

What is your question, actually? What do you want to complete? Your MATLAB code generated a 2D matrix of zeros, and it is as si...

I need a help for MATLAB code problems!

What is your question, actually? What do you want to complete? Your MATLAB code generated a 2D matrix of zeros, and it is as si...

11 months ago | 0

Answered

Is there such a table units identification approach?

Try this: opts = detectImportOptions('yourXLfile.xlsx') opts.selectedVariableNames = {'dissolved_oxygen'}; T1 = readtable('yo...

Is there such a table units identification approach?

Try this: opts = detectImportOptions('yourXLfile.xlsx') opts.selectedVariableNames = {'dissolved_oxygen'}; T1 = readtable('yo...

11 months ago | 0

Answered

Error using fprintf : Function is not defined for 'cell' inputs

what if you do fprintf(outputfile, 'blah %s', string(subID)) % sure, if that's your cell variable you want to display. Cheers....

Error using fprintf : Function is not defined for 'cell' inputs

what if you do fprintf(outputfile, 'blah %s', string(subID)) % sure, if that's your cell variable you want to display. Cheers....

11 months ago | 0

| accepted

Answered

how to import average specific data from excel file ?

Your Data(2:end, 3) is cell type. You can convert your Data column to array before. arrayData = cell2mat(Data2:end, 3)); The...

how to import average specific data from excel file ?

Your Data(2:end, 3) is cell type. You can convert your Data column to array before. arrayData = cell2mat(Data2:end, 3)); The...

11 months ago | 1

| accepted

Answered

how can i map a 2d texture image in 3d surface ?

Your code is not very clear, but I assume your 2D texture is f, right? You want a 3D plot of each surface? Would this work? v...

how can i map a 2d texture image in 3d surface ?

Your code is not very clear, but I assume your 2D texture is f, right? You want a 3D plot of each surface? Would this work? v...

11 months ago | 0

Answered

Index exceeds the number of array elements (2). Error (line 41)

Well, you're trying to reach n + 1 when creating the B vector. But n is 3. Thus your for loop goes until 4. The problem is tha...

Index exceeds the number of array elements (2). Error (line 41)

Well, you're trying to reach n + 1 when creating the B vector. But n is 3. Thus your for loop goes until 4. The problem is tha...

11 months ago | 0

Answered

Variables not appearing in workspace

Well, it looks like your code needs interaction with user when using listdlg. It is obvious that a choice should be made before...

Variables not appearing in workspace

Well, it looks like your code needs interaction with user when using listdlg. It is obvious that a choice should be made before...

11 months ago | 0

Answered

If I have an array with values and then another array with each value's category, how would I remove values with certain categories?

First, your notation for array is misguided. notation for arrays is [ ]. If you want only remove, reducing the size of your Da...

If I have an array with values and then another array with each value's category, how would I remove values with certain categories?

First, your notation for array is misguided. notation for arrays is [ ]. If you want only remove, reducing the size of your Da...

11 months ago | 0

| accepted

Answered

Unable to perform assignment

Is num two column variable? I wonder you should choose num(:, 1) or num(:, 2) to assign mgdata(:, 2).

Unable to perform assignment

Is num two column variable? I wonder you should choose num(:, 1) or num(:, 2) to assign mgdata(:, 2).

11 months ago | 0

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

12 months ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

12 months ago