736 total contributions since 2013

Physicist, working as control engineer for a wind turbine manufacturer.

Professional Interests: control,optimization, computer vision, robotics, renewable energies.

Answered

How I can split a matrix in four matrixes

M = rand(1001,3); % your matrix L = size(M,1); % L = number of rows n = floor(L/4); % number of rows for your matrices ...

How I can split a matrix in four matrixes

M = rand(1001,3); % your matrix L = size(M,1); % L = number of rows n = floor(L/4); % number of rows for your matrices ...

fast 3 Jahre ago | 0

Answered

Respected sir, i have code for extracting ROI from dorsal hand image, my problem is to read and save multiple images from folder. in following code only single image has read and save but i want multiple images to read and save please help me.

Hi, firstly, your way of asking the question does not make it easy to help you. Your code presentation is really annoying, but ...

Respected sir, i have code for extracting ROI from dorsal hand image, my problem is to read and save multiple images from folder. in following code only single image has read and save but i want multiple images to read and save please help me.

Hi, firstly, your way of asking the question does not make it easy to help you. Your code presentation is really annoying, but ...

etwa 3 Jahre ago | 1

| accepted

Answered

Saving a file with name of reference of other file name ?

Hi, it all depends on how the user introduces the *.stl file name, but taking for granted that the name is somehow available to ...

Saving a file with name of reference of other file name ?

Hi, it all depends on how the user introduces the *.stl file name, but taking for granted that the name is somehow available to ...

etwa 3 Jahre ago | 0

Answered

I have a 6000x9424x50 matrix and want to convert it into 6000x9424x10 and 6000x9424x20?? I meant to to split 50 bands to 10 or 20 bands individually?

your_matrix = rand(6000,9424,50); % random matrix M_10 = your_matrix(:,:,1:10); % 10 bands M_20 = your_matrix(:,:,11...

I have a 6000x9424x50 matrix and want to convert it into 6000x9424x10 and 6000x9424x20?? I meant to to split 50 bands to 10 or 20 bands individually?

your_matrix = rand(6000,9424,50); % random matrix M_10 = your_matrix(:,:,1:10); % 10 bands M_20 = your_matrix(:,:,11...

mehr als 3 Jahre ago | 0

| accepted

Answered

How do I index within a structure?

% dummy struct your_struct.field_1 = rand(5,1); your_struct.field_2 = rand(5,1); % array with field-mean your_...

How do I index within a structure?

% dummy struct your_struct.field_1 = rand(5,1); your_struct.field_2 = rand(5,1); % array with field-mean your_...

mehr als 3 Jahre ago | 1

Answered

Set image roi to zero

If _I_ is your image I(201:210,201:210) = 0;

Set image roi to zero

If _I_ is your image I(201:210,201:210) = 0;

mehr als 3 Jahre ago | 0

Answered

Clean way to find which elements of categorical array are part of a set of labels

I think you are looking for this: data = {'a', 'b', 'c', 'b', 'a'} ; members = {'a','b'}; ismember(data,membe...

Clean way to find which elements of categorical array are part of a set of labels

I think you are looking for this: data = {'a', 'b', 'c', 'b', 'a'} ; members = {'a','b'}; ismember(data,membe...

mehr als 3 Jahre ago | 1

| accepted

Answered

How do I ajust the vallues the X-axis of a mesh (Z,Y,X) plot?

hi, adjust this example to your needs: [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; ...

How do I ajust the vallues the X-axis of a mesh (Z,Y,X) plot?

hi, adjust this example to your needs: [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; ...

mehr als 3 Jahre ago | 0

Answered

Apply code on matlab files in different directories ?

From Documentation: path(path,'newpath') adds the newpath folder to the end of the search path. If newpath is already on the ...

Apply code on matlab files in different directories ?

From Documentation: path(path,'newpath') adds the newpath folder to the end of the search path. If newpath is already on the ...

fast 4 Jahre ago | 0

Answered

How to execute fft and ifft

Hi thereb, the sine wave is right there, but the problem is that after FFTing the your _y_ data, _YfreqD_ contains half the sam...

How to execute fft and ifft

Hi thereb, the sine wave is right there, but the problem is that after FFTing the your _y_ data, _YfreqD_ contains half the sam...

fast 4 Jahre ago | 0

| accepted

Answered

changing names of files

% Renaming a File in the Current Folder % In the current folder, rename oldname.m to newname.m: % movefile('oldname.m','...

changing names of files

% Renaming a File in the Current Folder % In the current folder, rename oldname.m to newname.m: % movefile('oldname.m','...

fast 4 Jahre ago | 0

Answered

the code wont display an answers calculated

Hi there, after reordering your code, I saw it follows this structure: method=='f' --> n= 1,2,3,other_value meth...

the code wont display an answers calculated

Hi there, after reordering your code, I saw it follows this structure: method=='f' --> n= 1,2,3,other_value meth...

fast 4 Jahre ago | 0

Answered

Adding phase noise in simple signal

Hello Kutru, I do not know exactly what were you expecting to find in your plots. The difference in your plots is only the nois...

Adding phase noise in simple signal

Hello Kutru, I do not know exactly what were you expecting to find in your plots. The difference in your plots is only the nois...

fast 4 Jahre ago | 0

Answered

The expression to the left of the equals sign is not a valid target for an assignment.

You are using the notation used by numeric::int instead of that to int Take a look at their differences in the ...

The expression to the left of the equals sign is not a valid target for an assignment.

You are using the notation used by numeric::int instead of that to int Take a look at their differences in the ...

etwa 4 Jahre ago | 0

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

etwa 4 Jahre ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

etwa 4 Jahre ago

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

etwa 4 Jahre ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

etwa 4 Jahre ago

Answered

how can store multiple value in a matrix??

ncadre=15; nbclasse=1000; load('D:\Documents\MATLAB\classifieur1.mat'); load('D:\Documents\MATLAB\classifieur2.mat');...

how can store multiple value in a matrix??

ncadre=15; nbclasse=1000; load('D:\Documents\MATLAB\classifieur1.mat'); load('D:\Documents\MATLAB\classifieur2.mat');...

etwa 4 Jahre ago | 0

| accepted

Answered

Efficient Frontier code error

Watch the last line of code: print portfolio03.ps - deps ; Mind the blank space right before deps simply delete it: ...

Efficient Frontier code error

Watch the last line of code: print portfolio03.ps - deps ; Mind the blank space right before deps simply delete it: ...

etwa 4 Jahre ago | 0

| accepted

Answered

error in working with cell array

hi, transform C into a matrix before concatenating A, B and C in result: C = cell2mat(C); result={A; B; C}; mydat...

error in working with cell array

hi, transform C into a matrix before concatenating A, B and C in result: C = cell2mat(C); result={A; B; C}; mydat...

etwa 4 Jahre ago | 0

Answered

How to replace data in a matrix by comparing from another matrix?

for k=1:length(B) x = A(:,1)==B(k,1); B(k,2) = A(x,2); end B = 1 5 ...

How to replace data in a matrix by comparing from another matrix?

for k=1:length(B) x = A(:,1)==B(k,1); B(k,2) = A(x,2); end B = 1 5 ...

etwa 4 Jahre ago | 1

| accepted

Answered

How do I loop through incrementally changing values

alpha = 1:0.5:20; a = 0.1+3*10^-3 * alpha.^2; b = 0.2+0.1*alpha - (3*10^-3)*(alpha.^2); c = 1./tan(-a./b); % I don't ...

How do I loop through incrementally changing values

alpha = 1:0.5:20; a = 0.1+3*10^-3 * alpha.^2; b = 0.2+0.1*alpha - (3*10^-3)*(alpha.^2); c = 1./tan(-a./b); % I don't ...

etwa 4 Jahre ago | 0

Answered

Good way to import data file

I'm sure this might be shorter, but I guess it'll be a valid solution for you: fid = fopen('your_file_name_here.txt'); ...

Good way to import data file

I'm sure this might be shorter, but I guess it'll be a valid solution for you: fid = fopen('your_file_name_here.txt'); ...

etwa 4 Jahre ago | 0

Answered

how to select particular cell in the cell array and particular column in that cell array

You have to add new values to old ones: % initialize your data (I do it with empty array to make it easy) X0 = []; Y0...

how to select particular cell in the cell array and particular column in that cell array

You have to add new values to old ones: % initialize your data (I do it with empty array to make it easy) X0 = []; Y0...

etwa 4 Jahre ago | 0

Answered

How do I find the two smallest values in varargin?

function out = two_lowest_values(varargin) a = sort(cell2mat(varargin)); out = a(1)*a(2);

How do I find the two smallest values in varargin?

function out = two_lowest_values(varargin) a = sort(cell2mat(varargin)); out = a(1)*a(2);

etwa 4 Jahre ago | 0

| accepted

Answered

Using Meshgrid for 3 variables

Make sure the size of d is right: If length(a) = n and length(L) = m, then, you have to have size(d) = [m x n] for example...

Using Meshgrid for 3 variables

Make sure the size of d is right: If length(a) = n and length(L) = m, then, you have to have size(d) = [m x n] for example...

etwa 4 Jahre ago | 0

Answered

How to find the maximum number of Consecutive dry days over time period?

I way of doing what you need with no need of toolboxes or special functions is this. Obviously, it would be much easier if you...

How to find the maximum number of Consecutive dry days over time period?

I way of doing what you need with no need of toolboxes or special functions is this. Obviously, it would be much easier if you...

mehr als 4 Jahre ago | 1