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

más de 3 años hace | 0

Pregunta


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

más de 3 años hace | 2 respuestas | 0

2

respuestas

Respondida
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')

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

Respondida
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)

más de 3 años hace | 0

| aceptada

Respondida
i want to know the fitness
i guess you are seraching for the correlation of X and Y coordinates see corr() and corrplot()

más de 3 años hace | 0

Respondida
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; % ...

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Respondida
Replacing special character 'É' to 'E'
looks like there are only manual solutions. Stackoverflow is your friend ;-) https://stackoverflow.com/a/60181033

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

Respondida
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')

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

Respondida
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); ...

más de 3 años hace | 0

Respondida
How to compare blank spaces in arrays?
use this a=["red","blue","green","yellow"]; b=["orange","","","purple"]; c=a(b=="")

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Pregunta


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 }';...

más de 3 años hace | 1 respuesta | 0

1

respuesta

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Respondida
How to set position of the legend outside the axes?
add a Name-Value pair to your legend command, e.g. legend('Location','eastoutside')

más de 3 años hace | 1

Respondida
How do you remove tick marks (not labels) from a colorbar?
try c=colobar; c.TickLength=0;

más de 3 años hace | 0

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

casi 4 años hace | 1

| aceptada

Respondida
Issue with reading text value from a cell in MS Excel using readmatrix
if i am not mistaken, readmatrix expects numbers for each entry, so the numbers can be but into a matrix. if your data contains ...

casi 4 años hace | 1

| aceptada

Respondida
Matlab keeps giving me error for invalid syntax! I don't understand why
looks like you are missing a comma if d>0 fprintf('Le soluzioni distinte sono %12.2f \n',A1 , A2) ...

casi 4 años hace | 1

Respondida
Store one vector range inside another
put the : range expression in the braces to select a range if a vector: vec=1:10 part=vec(5:8)

casi 4 años hace | 0

Respondida
Changing pixel colors of .JPG image produces weird colors
dont forget to set all 3 channels of the rgb image to 0 by using e.g. app.newImage(:, round(col),:) = 0

casi 4 años hace | 1

| aceptada

Respondida
Plot figure for certain elements of readtable output
you can use directly index the variables of the table: tbl=table(); tbl.long=[1 2 3 4 4 4]; tbl.lat=[34 56 57 72 44 124]; ...

casi 4 años hace | 0

Cargar más