Answered

How to plot two .fig file as subplots in a new figure window ?

here a kind of manual solution, adapted from the function given on file exchange: h(1) = openfig('fog.fig','invisible'); ax(1)...

How to plot two .fig file as subplots in a new figure window ?

here a kind of manual solution, adapted from the function given on file exchange: h(1) = openfig('fog.fig','invisible'); ax(1)...

10 months ago | 0

| accepted

Answered

matrix per minute in plot per hour

you mean something like that? or do you want another format? plot((1:96)/4,rand(96,1)); xticks(0:3:24) xlim([0 24]); xlabel(...

matrix per minute in plot per hour

you mean something like that? or do you want another format? plot((1:96)/4,rand(96,1)); xticks(0:3:24) xlim([0 24]); xlabel(...

10 months ago | 0

| accepted

Answered

How to save a high resolution image in MTALB?

exportgraphics() is available since 2020a which release are you using?

How to save a high resolution image in MTALB?

exportgraphics() is available since 2020a which release are you using?

10 months ago | 0

| accepted

Answered

How do I make a specific range of numbers and increment?

use colon operator T=100:50:500

How do I make a specific range of numbers and increment?

use colon operator T=100:50:500

10 months ago | 0

Answered

Buffer around a value in a matrix.

A=[ 0 0 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 1 1 0 0]; B=imfilter(A,ones(3...

Buffer around a value in a matrix.

A=[ 0 0 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 1 1 0 0]; B=imfilter(A,ones(3...

10 months ago | 0

| accepted

Answered

efficient way of importing excel sheet

if you activate MultiSelect in uigetfile, you can select more than one file. The resulting variables are then cell arrays with t...

efficient way of importing excel sheet

if you activate MultiSelect in uigetfile, you can select more than one file. The resulting variables are then cell arrays with t...

10 months ago | 0

Question

Action on close of spectrumAnalyzer() object/windows

Dear community, at the moment I am preparing for some real time processing on audio recordings. I want to end the inifinite rec...

10 months ago | 2 answers | 0

Answered

How to sort a part of a given array?

just use indexing to reassign those numbers data=20:-1:1 data(1:5)=sort(data(1:5),'ascend')

How to sort a part of a given array?

just use indexing to reassign those numbers data=20:-1:1 data(1:5)=sort(data(1:5),'ascend')

10 months ago | 0

Answered

how to create different matrices?

you could split them into multiple 400x1 vectors by this data=rand(30000,1); data=reshape(data,400,1,[]); size(data) you can...

how to create different matrices?

you could split them into multiple 400x1 vectors by this data=rand(30000,1); data=reshape(data,400,1,[]); size(data) you can...

10 months ago | 1

| accepted

Answered

Summing the values with looping

you could generate all values you asked for with a single expression. if you want the sum until a specific n, use cumsum() on th...

Summing the values with looping

you could generate all values you asked for with a single expression. if you want the sum until a specific n, use cumsum() on th...

10 months ago | 0

Answered

How can I draw contour lines with a given excel Data sheet

you mean something like that? mtx=readmatrix('F_22_Project Data.xlsx','Range','D9:V32'); contour(0:20:360,0:20:460,mtx)

How can I draw contour lines with a given excel Data sheet

you mean something like that? mtx=readmatrix('F_22_Project Data.xlsx','Range','D9:V32'); contour(0:20:360,0:20:460,mtx)

10 months ago | 0

| accepted

Answered

i want to know the fitness

i guess you are seraching for the correlation of X and Y coordinates see corr() and corrplot()

i want to know the fitness

i guess you are seraching for the correlation of X and Y coordinates see corr() and corrplot()

10 months ago | 0

Answered

How do I plot grid points in a wedge-shaped volume?

you could add the third dimension like that: x=-6:6; [X,Y,Z]=meshgrid(x); r=5; phi=pi/2; % from [0,pi] theta=pi/4; % ...

How do I plot grid points in a wedge-shaped volume?

you could add the third dimension like that: x=-6:6; [X,Y,Z]=meshgrid(x); r=5; phi=pi/2; % from [0,pi] theta=pi/4; % ...

10 months ago | 0

Answered

MATLAB 2022b removing spaces from strings in concatenation?

"For character array inputs, strcat removes trailing ASCII whitespace characters: space, tab, vertical tab, newline, carriage re...

MATLAB 2022b removing spaces from strings in concatenation?

"For character array inputs, strcat removes trailing ASCII whitespace characters: space, tab, vertical tab, newline, carriage re...

10 months ago | 1

| accepted

Answered

How can i find the Majoraxislength and Minoraxislength of each cell present in binary image ?

a call to regionprops should suffice: clear; im=imread("image.png"); im=rgb2gray(im); % to grayscale im=im~=0; % make bina...

How can i find the Majoraxislength and Minoraxislength of each cell present in binary image ?

a call to regionprops should suffice: clear; im=imread("image.png"); im=rgb2gray(im); % to grayscale im=im~=0; % make bina...

10 months ago | 0

| accepted

Answered

Name points on a plot based on their order

you could add the line text(ri(:,1),ri(:,2)+0.05,cellstr(num2str((1:size(ri,1))'))) or text(ri(:,1),ri(:,2)+0.05,strsplit(num...

Name points on a plot based on their order

you could add the line text(ri(:,1),ri(:,2)+0.05,cellstr(num2str((1:size(ri,1))'))) or text(ri(:,1),ri(:,2)+0.05,strsplit(num...

10 months ago | 0

| accepted

Answered

Traslate and Rotate a point cloud

if you have a matrix nx3, with each row being one set of point corrdinates you can translate first and rotate afterwards using s...

Traslate and Rotate a point cloud

if you have a matrix nx3, with each row being one set of point corrdinates you can translate first and rotate afterwards using s...

10 months ago | 0

Answered

Replacing special character 'É' to 'E'

looks like there are only manual solutions. Stackoverflow is your friend ;-) https://stackoverflow.com/a/60181033

Replacing special character 'É' to 'E'

looks like there are only manual solutions. Stackoverflow is your friend ;-) https://stackoverflow.com/a/60181033

10 months ago | 0

| accepted

Answered

How to find the count of vertical lines in an image using Fourier Transform in MATLAB?

% create sample image imgLine=repmat([ones(1,5) zeros(1,20)],[1 10]); % shift it a bit to force broken (incomplete) lines i...

How to find the count of vertical lines in an image using Fourier Transform in MATLAB?

% create sample image imgLine=repmat([ones(1,5) zeros(1,20)],[1 10]); % shift it a bit to force broken (incomplete) lines i...

10 months ago | 1

Answered

Sorting group position from 1

i think you are searching for this: [~,~,c]=unique([2 3 2 1],'stable') [~,~,c]=unique([3 3 1 2],'stable')

Sorting group position from 1

i think you are searching for this: [~,~,c]=unique([2 3 2 1],'stable') [~,~,c]=unique([3 3 1 2],'stable')

10 months ago | 1

| accepted

Answered

How to filter out files with a list of specific string in UIGETFILE command?

you can provide mutiple filters to choose from: uigetfile({'EFA*.xls;EFB*.xls'},'Select a File'); this shows EFA*.xls files an...

How to filter out files with a list of specific string in UIGETFILE command?

you can provide mutiple filters to choose from: uigetfile({'EFA*.xls;EFB*.xls'},'Select a File'); this shows EFA*.xls files an...

10 months ago | 1

| accepted

Answered

Hold on and Hold off command keeps all plots on subsequent graphs

do you want the second part into another axes or also into another figure? syms x eqn1 = x^2*cos(x); d_eqn1 = diff(eqn1,x); ...

Hold on and Hold off command keeps all plots on subsequent graphs

do you want the second part into another axes or also into another figure? syms x eqn1 = x^2*cos(x); d_eqn1 = diff(eqn1,x); ...

10 months ago | 0

Answered

How to compare blank spaces in arrays?

use this a=["red","blue","green","yellow"]; b=["orange","","","purple"]; c=a(b=="")

How to compare blank spaces in arrays?

use this a=["red","blue","green","yellow"]; b=["orange","","","purple"]; c=a(b=="")

10 months ago | 0

Answered

error in prctile function?

did you read the documentation? there is an example given for the interpolation and how the given numbers may be distributed. Yo...

error in prctile function?

did you read the documentation? there is an example given for the interpolation and how the given numbers may be distributed. Yo...

10 months ago | 0

| accepted

Question

Abbreviate regexp: match a if present, else match b

dear community, can someone abbreviate the follwing if else in a single regexp? str1='this is } and this is }, and this is }';...

11 months ago | 1 answer | 0

Answered

write a function to return next value each time only nonzeros

if I understand correctly you want the function the be able to remember how often the function was called. each time the next no...

write a function to return next value each time only nonzeros

if I understand correctly you want the function the be able to remember how often the function was called. each time the next no...

12 months ago | 0

| accepted

Answered

The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'

the description says it inserts zeros AND applies the filter for interpolation. of course the filter changes the zero values. ...

The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'

the description says it inserts zeros AND applies the filter for interpolation. of course the filter changes the zero values. ...

1 year ago | 0

Answered

How to set position of the legend outside the axes?

add a Name-Value pair to your legend command, e.g. legend('Location','eastoutside')

How to set position of the legend outside the axes?

add a Name-Value pair to your legend command, e.g. legend('Location','eastoutside')

1 year ago | 0

Answered

How do you remove tick marks (not labels) from a colorbar?

try c=colobar; c.TickLength=0;

How do you remove tick marks (not labels) from a colorbar?

try c=colobar; c.TickLength=0;

1 year ago | 0

Answered

FFT on Image Time Series

if the object of your camera is more or less static and illuminated with a temporally modulated light source and you are intere...

FFT on Image Time Series

if the object of your camera is more or less static and illuminated with a temporally modulated light source and you are intere...

1 year ago | 1

| accepted