Answered

Switch to last opened tab in Editor

I don't know if its possible. If your MATLAB version allows it, you can move the tabs and place them next to each other and then...

Switch to last opened tab in Editor

I don't know if its possible. If your MATLAB version allows it, you can move the tabs and place them next to each other and then...

meer dan 4 jaar ago | 0

Answered

convert values to string

hello. This should work groupLabels = labels(groupValue);

convert values to string

hello. This should work groupLabels = labels(groupValue);

meer dan 4 jaar ago | 0

Answered

delete the columns with the last two values equal to NAN

This should do it: b = a(:, ~isnan(a(end-1,:)) | ~isnan(a(end,:)));

delete the columns with the last two values equal to NAN

This should do it: b = a(:, ~isnan(a(end-1,:)) | ~isnan(a(end,:)));

meer dan 4 jaar ago | 0

Answered

least squares method for the 3 unknowns

Hello. If b = DMOS1' then your solution is A\b

least squares method for the 3 unknowns

Hello. If b = DMOS1' then your solution is A\b

meer dan 4 jaar ago | 0

Answered

MATLAB not saving matrix as .txt correctly

Hi Max. See here: <https://www.mathworks.com/matlabcentral/answers/260748-writing-matlab-result-to-a-txt-file>

MATLAB not saving matrix as .txt correctly

Hi Max. See here: <https://www.mathworks.com/matlabcentral/answers/260748-writing-matlab-result-to-a-txt-file>

meer dan 4 jaar ago | 0

Answered

How to save streaming data to Matlab workspace

Hi, I don't have experience in real-time streaming but I would try to have a counter (t = 1:100) and save the variable(s) in ...

How to save streaming data to Matlab workspace

Hi, I don't have experience in real-time streaming but I would try to have a counter (t = 1:100) and save the variable(s) in ...

meer dan 4 jaar ago | 0

Answered

how do you make the results of a loop into table?

Like Jan wrote, you should format your code and explain "table" in order to geta better answer. I only can guess you want a 2D-...

how do you make the results of a loop into table?

Like Jan wrote, you should format your code and explain "table" in order to geta better answer. I only can guess you want a 2D-...

meer dan 4 jaar ago | 0

Answered

Subtracting Two Matrices of different sizes

Hi do you mean something like this? %A,B: inputs matrices %C output matrix N = max([size(A,1) size(B,1)]); M ...

Subtracting Two Matrices of different sizes

Hi do you mean something like this? %A,B: inputs matrices %C output matrix N = max([size(A,1) size(B,1)]); M ...

meer dan 4 jaar ago | 0

Answered

writing matlab result to a txt file

Hi Have you tried csvwrite? csvwrite('myfile.txt', M); I'm sure R can read csv files.

writing matlab result to a txt file

Hi Have you tried csvwrite? csvwrite('myfile.txt', M); I'm sure R can read csv files.

meer dan 4 jaar ago | 1

| accepted

Answered

how to get the actual distance between two points

This should do the job: length_cm = 30; width_cm = 20; length_px = 521; width_px = 441; length_cm_pro_p...

how to get the actual distance between two points

This should do the job: length_cm = 30; width_cm = 20; length_px = 521; width_px = 441; length_cm_pro_p...

meer dan 4 jaar ago | 0

Answered

Creating a table from different sized vectors

Hi, you could try: A = nan(no_of_columns, longest_array); % or zeros or whatever you want to fill the unused spaces and ...

Creating a table from different sized vectors

Hi, you could try: A = nan(no_of_columns, longest_array); % or zeros or whatever you want to fill the unused spaces and ...

meer dan 4 jaar ago | 0

| accepted

Answered

how i can group legend from graphic made by plot and boxplot

Hello, since boxplot returns more than one handler, you could use this to select only one of them: legend([h1(1,1), h2(1,1)...

how i can group legend from graphic made by plot and boxplot

Hello, since boxplot returns more than one handler, you could use this to select only one of them: legend([h1(1,1), h2(1,1)...

meer dan 4 jaar ago | 0

Answered

Conversion of for loop to Vector.

Hello, I would try this under the assumjption that: pdist(X1,'euclidean') == pdist(X2,'euclidean') if: X1 = [a(i...

Conversion of for loop to Vector.

Hello, I would try this under the assumjption that: pdist(X1,'euclidean') == pdist(X2,'euclidean') if: X1 = [a(i...

meer dan 4 jaar ago | 0

Answered

How can I store my data into a 2D array?

Hi. The output of dec2bin is a char not a double. So you should define "out" as a cell: [m,n] = size(x); out = cell(m,n); ...

How can I store my data into a 2D array?

Hi. The output of dec2bin is a char not a double. So you should define "out" as a cell: [m,n] = size(x); out = cell(m,n); ...

meer dan 4 jaar ago | 0

Answered

COMO CREAR UN RECTANGULO

Hola no sé si entendí bien lo que quieres. La idea del meshgrid es crear las variables de entrada para la función "mesh". Par...

COMO CREAR UN RECTANGULO

Hola no sé si entendí bien lo que quieres. La idea del meshgrid es crear las variables de entrada para la función "mesh". Par...

meer dan 4 jaar ago | 0

Answered

2d arry sorting

Hi, is this what you want? Cheers! Renato clear a(1,:)=[1,2,3,4,10,11,12,13,19,20,21,22]; a(2,:)=[4,1,3,2,4,...

2d arry sorting

Hi, is this what you want? Cheers! Renato clear a(1,:)=[1,2,3,4,10,11,12,13,19,20,21,22]; a(2,:)=[4,1,3,2,4,...

meer dan 4 jaar ago | 1

| accepted

Answered

write image names & details in excel file

You can use a cell to save strings and numbers for your excel table: for i = 1:N % Get image info... %for examp...

write image names & details in excel file

You can use a cell to save strings and numbers for your excel table: for i = 1:N % Get image info... %for examp...

meer dan 4 jaar ago | 0

| accepted

Answered

while run the following matlab program i am geting error as Index exceeds matrix dimensions.please tell me where i did wrong.

Hello, I'm not sure if the order of the command you posted is right or complete: e.g. "if (n<10)" statement is before n is d...

while run the following matlab program i am geting error as Index exceeds matrix dimensions.please tell me where i did wrong.

Hello, I'm not sure if the order of the command you posted is right or complete: e.g. "if (n<10)" statement is before n is d...

meer dan 4 jaar ago | 0

Answered

How to pick values that is below a certain value in a matrix/vector

you can try: B = A(A>5) I hope this helps

How to pick values that is below a certain value in a matrix/vector

you can try: B = A(A>5) I hope this helps

bijna 5 jaar ago | 0

| accepted

Answered

multiply/divide two cells array

Hi, you need a 2 input function: C= cellfun(@(x,y) x*y, A,B, 'UniformOutput',false) Alternatively: C = num2cell(cell...

multiply/divide two cells array

Hi, you need a 2 input function: C= cellfun(@(x,y) x*y, A,B, 'UniformOutput',false) Alternatively: C = num2cell(cell...

bijna 5 jaar ago | 2

| accepted