回答済み
How to get the number in the cell containing the letter and space
>> str2double(extractAfter(a,' ')) ans = 1001 1101 1201 1301 1401 >> ADDENDUM: ...

4年弱 前 | 1

回答済み
Remove a set of intervals from an array
That's the brute force way to code it and use MATLAB, but yes, it's just array indexing % delete the rows identified -- looping...

4年弱 前 | 1

回答済み
How do I Vectorize the for loop containing if else statements?
In if (TREG > L) == 1 the "== 1" is superfluous, remove it. The result of a logical expression is 0/1 and if compares to 1 fo...

4年弱 前 | 1

| 採用済み

回答済み
Can you please explain why do we do this code?
To illustrate how NOT to write MATLAB code, apparently... The person responsible for this wanted a Nx2 vector of the two member...

4年弱 前 | 0

回答済み
How to interpret the reading of seconds in matlab?
OK, I couldn't stand the suspense... :) tT=readtable('EXPERİMENT_SU8.xlsx','Sheet',3,'Range','A2142:A5799','ReadVariableNames',...

4年弱 前 | 0

| 採用済み

回答済み
How to interpret the reading of seconds in matlab?
The discussion of the file format aside, I thought that was the issue in converting to times initially and didn't notice the iss...

4年弱 前 | 0

回答済み
Delete specific rows in excel
Use read/writematrix instead data=readmatrix('text.xlsx'); writematrix(nan(size(data)),'test.xlsx',"WriteMode",'inplace','Rang...

4年弱 前 | 1

| 採用済み

回答済み
How to write string in .CSV format?
A=1; B=2; e=4; Name='data stored'; Input_data={A B e Name}; writecell(Input_data,'input.csv','Delimiter',',','QuoteStrin...

4年弱 前 | 0

回答済み
Dialog box creation and mixing text/list boxes
There is no such combination uicontrol in MATLAB; but somebody else has already done the heavy lifting for you.. <fileexchange/...

4年弱 前 | 0

回答済み
How to use if statement to add if negative and minus if positive
PM180=P-sign(P)*180;

4年弱 前 | 0

| 採用済み

回答済み
Extraction of frequencies and there indices from FFT graph ( for DTMF Detection)
>> Y=abs(fftshift(X1)); >> [pk,fpk]=findpeaks(Y,f_range) pk = 1156.37 1132.03 1132.03 1156.37 fpk =...

4年弱 前 | 1

| 採用済み

回答済み
"Column Vector" XTick labels
I don't think so with the tick labels(*), but you can write them with text as v1=[0:2];v2=[2:-1:0]; for i=1:3 xtl(i)=cellst...

4年弱 前 | 0

回答済み
print value to matrix
nIter=YourNumberOfTotalIterations; nRows=20; V=zeros(nRows,nIter); % preallocate for i=1:nIter V(:,i)=YourF...

4年弱 前 | 0

回答済み
Change of marker size and color of a fitted plot
The specialized version of plot for use with a fit object doesn't know about all the regular data plot function; it has only a s...

4年弱 前 | 1

| 採用済み

回答済み
stacked bar graph from 3 columns
For 'stacked' the columns are sum of rows; there are as many bars as rows. So, if your data array above is XYZ, then Z=reshape...

4年弱 前 | 0

| 採用済み

回答済み
Reading and plotting synchrotron data
Where does the 20000 come from? Is that how many observations/measurements are in each of the 512 files, I guess? Doesn't seem...

4年弱 前 | 0

回答済み
Splitting table text column with multiple delimiters based on parantheses.
A rudeness about way the string functions are implemented -- they won't return variable numbers of elements that would be extrem...

4年弱 前 | 0

回答済み
Locate values in dataset and output the corresponding time column
ix=find(diff(sign(x))==-2)-1;

4年弱 前 | 0

回答済み
Set x-axis tick labels in subplots
There's nothing in that code to rotate the x axis labels that must be in the previous three. As general comment, would be bette...

4年弱 前 | 0

回答済み
Create a loop to read a matrix
ic=find(~all(surv_matrix==0)); will return your three column indices to use to index into the array. You haven't defined where...

4年弱 前 | 0

| 採用済み

回答済み
What is the recommended way to pass long list of parameters between main workspace and function?
If the variables are such as your example of a sequence of number variables with same root name, that implies they're related/sa...

4年弱 前 | 1

| 採用済み

回答済み
Scatter plot with strings on x axis
<scatter> can take a categorical variable as an x variable in which case you can get the text labels automagically -- however, t...

4年弱 前 | 0

回答済み
I am trying to filter audio using lms filter but i got this error"Error using filter Invalid data type. Input arrays must be numeric or logical".
I don't have the DSP TB, but looking at the doc, the intro page has To filter a signal using an adaptive FIR filter: Create th...

4年弱 前 | 1

| 採用済み

回答済み
Axes Limit in Curve Fitting Toolbox of MATLAB 2022a
Under Tools menu.

4年弱 前 | 0

回答済み
Filtering Table Data for highest recording with multiple samples per day
Use a <timetable> and <@doc:retime>

4年弱 前 | 0

回答済み
Cross product of two tables without common key
May be something more exotic, but I'd just build it from the pieces... tT=[table(reshape(repmat(t1.Name,1,height(t2)).',[],1),'...

4年弱 前 | 0

回答済み
Can somebody explain the following code ?
Just turns into binary image at the threshold value, th NB; the double loop construct in MATLAB should be written as vector log...

4年弱 前 | 0

回答済み
How can I export a string to a .txt file?
As documented, save translates character data to ASCII codes with the 'ascii' option. It means it literally! Use writematrix(...

4年弱 前 | 0

| 採用済み

回答済み
how to search start and end indices of longer interval with threshold and variance conditions
The function does return the change point indices -- you just didn't call it with a return value to save them...that plot looks ...

4年弱 前 | 0

回答済み
combine 2 timetables with different variables into 1 timetable?
ttC=synchronize(ttA,ttB); % catenate the two horizontally at matching times ttC=ttC(isfinite(ttC.Price),:); ...

4年弱 前 | 1

| 採用済み

さらに読み込む