research interests: vibrations, optimal control, system modeling and simulation, mechatronics... coding

Answered

Tensor Product According to Input (Dynamically)

If your variable sigma_x is 90 rotated eye matrix, then you can use A = rot90(eye(d)); Good luck

Tensor Product According to Input (Dynamically)

If your variable sigma_x is 90 rotated eye matrix, then you can use A = rot90(eye(d)); Good luck

8 days ago | 0

Answered

How to rename a bunch of files in a folder

Here is the answer that changes the file names to: 1a.tif, 2a.tif, 3a.tif, ..., etc. files = dir('*.tif'); for ii = 1:length(f...

How to rename a bunch of files in a folder

Here is the answer that changes the file names to: 1a.tif, 2a.tif, 3a.tif, ..., etc. files = dir('*.tif'); for ii = 1:length(f...

1 month ago | 0

Answered

How to generate a real time signal?

If what you need is a sort of white noise, then you can use random number generators, e.g.: rand() - uniform distributed, ran...

How to generate a real time signal?

If what you need is a sort of white noise, then you can use random number generators, e.g.: rand() - uniform distributed, ran...

1 month ago | 0

Answered

" Array dimensions must match for binary array op."

Here is one of the easy solutions: for jj=1:numel(ThAll) TH_all=ThAll{jj}; for kk=1:4 TH_ALL(jj, k...

" Array dimensions must match for binary array op."

Here is one of the easy solutions: for jj=1:numel(ThAll) TH_all=ThAll{jj}; for kk=1:4 TH_ALL(jj, k...

1 month ago | 0

Answered

Can someone advise how I fix this loop?

Hi, That would be somewhat in this way: for ii = 1:59 sFiles(ii).iStudy = bst_process('CallProcess', 'process_select_search...

Can someone advise how I fix this loop?

Hi, That would be somewhat in this way: for ii = 1:59 sFiles(ii).iStudy = bst_process('CallProcess', 'process_select_search...

1 month ago | 0

| accepted

Answered

Create plot handle without rendering it.

H = figure("Visible",false); HH = plot(1:5);

Create plot handle without rendering it.

H = figure("Visible",false); HH = plot(1:5);

1 month ago | 0

| accepted

Answered

saving variables programmatically using list of variable names

Here is an easy solution: a=1;b=2;c=3; save('myMatFile.mat','a','b','c') % Or a=1;b=2;c=3; MY_var = {'a','b','c'}; save(...

saving variables programmatically using list of variable names

Here is an easy solution: a=1;b=2;c=3; save('myMatFile.mat','a','b','c') % Or a=1;b=2;c=3; MY_var = {'a','b','c'}; save(...

1 month ago | 0

Answered

How to fix: Index Exceeds Matrix Dimensions

Put your file to be read in your current directory.

How to fix: Index Exceeds Matrix Dimensions

Put your file to be read in your current directory.

1 month ago | 0

| accepted

Answered

Return Indices for x Smallest/Largest Values in Array

here is one of the possible ways: A = [...; ...; ...]; [Row1,Col1]=find(max(A(:))==A) % Shows row# and col# of largest element...

Return Indices for x Smallest/Largest Values in Array

here is one of the possible ways: A = [...; ...; ...]; [Row1,Col1]=find(max(A(:))==A) % Shows row# and col# of largest element...

1 month ago | 1

Answered

How to fix: Index Exceeds Matrix Dimensions

Remove: (1) in filenames(1).name on line on line 88

How to fix: Index Exceeds Matrix Dimensions

Remove: (1) in filenames(1).name on line on line 88

1 month ago | 0

Answered

Why White Noise is not adding Uniformly to Signal?

In your plot section, you are plotting three sets instead of four and thus, the noise added signal is not showing up. See: ...

Why White Noise is not adding Uniformly to Signal?

In your plot section, you are plotting three sets instead of four and thus, the noise added signal is not showing up. See: ...

1 month ago | 0

Answered

How ı can write this function on Matlab

Hi, Here is one of the possible solutions for x having a single value: function Y = MY_fun(x) if x>=1 && x<10 Y = ex...

How ı can write this function on Matlab

Hi, Here is one of the possible solutions for x having a single value: function Y = MY_fun(x) if x>=1 && x<10 Y = ex...

1 month ago | 0

| accepted

Answered

Function Requests and receives from the user the dimensions of the sampled matrix until a proper value is obtained

function [R, C]=MD(m,n) while m<4 || m>10 || n>12 || n<7 disp('Wrong dimensions are entered: Enter new dimensions! ...

Function Requests and receives from the user the dimensions of the sampled matrix until a proper value is obtained

function [R, C]=MD(m,n) while m<4 || m>10 || n>12 || n<7 disp('Wrong dimensions are entered: Enter new dimensions! ...

1 month ago | 0

Answered

Tiff image to RGB

Hi, Here is a short code how you can start working on: F1 = 'Name'; % Name of your Tiff files as e.g.: Name1.tiff, Name2.ti...

Tiff image to RGB

Hi, Here is a short code how you can start working on: F1 = 'Name'; % Name of your Tiff files as e.g.: Name1.tiff, Name2.ti...

1 month ago | 0

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

1 month ago

Answered

Align thermal and RGB images

Did you accept the given source as a solution to your query?

Align thermal and RGB images

Did you accept the given source as a solution to your query?

1 month ago | 0

Answered

Plotting Airy equation using matlab

Here is one of the possible solution codes: syms y(t) Dy=diff(y,1); D2y=diff(y, 2); A=dsolve(D2y - t*y == 0, y(0)==1, Dy(0...

Plotting Airy equation using matlab

Here is one of the possible solution codes: syms y(t) Dy=diff(y,1); D2y=diff(y, 2); A=dsolve(D2y - t*y == 0, y(0)==1, Dy(0...

1 month ago | 0

| accepted

Answered

Align thermal and RGB images

Here is one nice source to work with rgb and thermal images. https://www.mathworks.com/company/newsletters/articles/automating-...

Align thermal and RGB images

Here is one nice source to work with rgb and thermal images. https://www.mathworks.com/company/newsletters/articles/automating-...

1 month ago | 1

Answered

How to analyze fraction of an image based on brightness?

The brighness can be computed as shown here : https://www.mathworks.com/matlabcentral/answers/48841-how-to-find-the-brightness-...

How to analyze fraction of an image based on brightness?

The brighness can be computed as shown here : https://www.mathworks.com/matlabcentral/answers/48841-how-to-find-the-brightness-...

1 month ago | 0

Answered

problem finding roi formula for ct scan image

If you'd need to collect the coordinates of a few selected points by a user, then you'd need to use: [x, y]=ginput(1); % Selec...

problem finding roi formula for ct scan image

If you'd need to collect the coordinates of a few selected points by a user, then you'd need to use: [x, y]=ginput(1); % Selec...

1 month ago | 0

Answered

Error using xlsread (line 129). File name must be a string or character vector.

Your codes are workign very well. You'd need to have all of your data files and scripts in one directory. That is it.

Error using xlsread (line 129). File name must be a string or character vector.

Your codes are workign very well. You'd need to have all of your data files and scripts in one directory. That is it.

1 month ago | 0

Answered

using linear interpolation to find coefficients

Hi, use polyfit(); e.g. x = alpha; y = deBF; % then Coeff= polyfit(x, y, N); % N=1 linear fit, N=2 second order polynomia...

using linear interpolation to find coefficients

Hi, use polyfit(); e.g. x = alpha; y = deBF; % then Coeff= polyfit(x, y, N); % N=1 linear fit, N=2 second order polynomia...

2 months ago | 1

Answered

How to modify decimal places when exporting data with fprintf

Hi, Here is an easy solution with round(): a = {'C1', 'A1', 'B1'}' b = {'C', 'A', 'B'}' c = {1.1, 2.1, 3.1}' d = {1.16666...

How to modify decimal places when exporting data with fprintf

Hi, Here is an easy solution with round(): a = {'C1', 'A1', 'B1'}' b = {'C', 'A', 'B'}' c = {1.1, 2.1, 3.1}' d = {1.16666...

2 months ago | 0

Answered

Like finite element loop

hi, Here is the loop based solution: x = [1 2 3 4 5 6 7 8 9 10]; y = [0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; T0 = 293; c...

Like finite element loop

hi, Here is the loop based solution: x = [1 2 3 4 5 6 7 8 9 10]; y = [0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; T0 = 293; c...

2 months ago | 0

| accepted

Solved

Find the maximum number of decimal places in a set of numbers

Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

2 months ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 months ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

2 months ago

Answered

How to replace string by double in cell array

D1D=readtable('test.xlsx'); D1D.cc=str2double(D1D.cc);

How to replace string by double in cell array

D1D=readtable('test.xlsx'); D1D.cc=str2double(D1D.cc);

2 months ago | 0

| accepted

Answered

How to replace string by double in cell array

use a command: double() To get back your strings use the command: char()

How to replace string by double in cell array

use a command: double() To get back your strings use the command: char()

2 months ago | 0