Respondida
The best way to collect the data of sensors over a long period of time to study the behavior of the sensors as to which sensor leads/lags during time transitions?
If have Signal Processing TB, sounds like job for |finddelay|

más de 8 años hace | 0

| aceptada

Respondida
Problem with bar plot
<https://www.mathworks.com/matlabcentral/answers/329953-how-to-create-bar-graph-with-categorical-data?s_tid=answers_rc1-1_p1_MLT...

más de 8 años hace | 0

| aceptada

Respondida
speed up max function
A significant fraction is undoubtedly the addressing of the 4D array; the same fragment but d=c(1:24,1,2,3); for i=1:1...

más de 8 años hace | 0

| aceptada

Respondida
could anyone help me how to arrange the following result in descending order as i am getting error
Use |cell2mat| on the cell array first, then sort on whatever dimension or subreference of the array you need.

más de 8 años hace | 0

Respondida
slicing an M-by-N-by-3 matrix using an M-by-N matrix of logical values
A=0.5*(A.*i+C.*i);

más de 8 años hace | 0

Respondida
Changing numbers to actual dates
>> DT=datetime(2018,7+T.',7) DT = 10×1 datetime array 07-Jul-2018 07-Nov-2020 07-Mar-2023 07-...

más de 8 años hace | 0

| aceptada

Respondida
Trouble with copyfile and rename
copyfile(NameF,[Param.folder1,Param.folder2,'rez.txt']); expands to copyfile(NameF,'C:\Users...C:\Users...rez.txt');...

más de 8 años hace | 0

| aceptada

Respondida
separate date and time from a .txt file with no spaces
You'll have to read this in pieces to get the first line that has an extra couple of fields, then the subsequent and paste those...

más de 8 años hace | 0

Respondida
Index exceeds matrix dimensions error
In Matlab, no loops needed-- data=textscan(fid,'%s%s%d%d','delimiter', '/'); Names=string(data(:,2)); % conve...

más de 8 años hace | 0

| aceptada

Respondida
Is it possible to remove only specific tick mark(s) while keeping tick labels?
No; removing a tick clears the associated label; there's an inbuilt 1:1 correlation; "no tickee, no lablee". To do this would...

más de 8 años hace | 2

| aceptada

Respondida
norm inbuilt function code
That's how _all_ builtin functions work in Matlab, that's why they're "built in"; the working part of the function is compiled c...

más de 8 años hace | 0

| aceptada

Respondida
Updating mean and standard deviation
You can keep the partial sums mu=SUM(x)/N --> SUMX/N SUMX=SUMX+xnew-xold; xold=xnew; in each iteration. Similarly...

más de 8 años hace | 1

| aceptada

Respondida
On semilogx graph I have two known points and I wish to find out values on a linear line between these two points
Not sure the question, precisely, but consider x = [10 500 10000]; y = [5 15 50]; figure semilogx(x,y,'-'); gri...

más de 8 años hace | 0

| aceptada

Respondida
how to compare one element in an array with all the other elements in another array? And repeating it for n elements in the first array?
A = [ 1, 2,3,4,5] B = [ 3,4,2,6,8,0] Taking a guess, and what was written literally, >> for i=1:length(A) B...

más de 8 años hace | 0

Respondida
how to omit zero values while plotting the graph
A) yplot=y; % make a copy of the data specifically for plotting yplot(yplot==0)=nan; % replace 0 elements ...

más de 8 años hace | 8

Respondida
find the index of the mean and mode of a plot
doc find *NB:* there's nothing that says there _will_ be a value in the _Y_ vector that matches the value of the mean; lik...

más de 8 años hace | 0

Respondida
What is the function for receiving a vector that will contain the elements of the second diagonal?
Read the input description; there's a second optional argument to |diag|

más de 8 años hace | 1

Respondida
How using function Stairs for a market ?
S = [400 500 200]; % supply PS = [15 25 55]; % Price supply [PS,iPS]=sort(PS); % sort price ascendin...

más de 8 años hace | 1

| aceptada

Respondida
Heatmap labels based on another matrix
See the examples; you didn't call it with anything excepting the data array so it can't "know" anything about labels... <http...

más de 8 años hace | 1

| aceptada

Respondida
Error calling global variable in function
|global Global_Coeff;| has to be in every workspace and/or function that wants/needs access to the global variable; all you've d...

más de 8 años hace | 1

| aceptada

Respondida
Separating Data into columns based on certain text variable in that data
>> data=readtable('jack.dat','format','%{MM/dd/yyyy}D %s %f%%') data = Var1 Var2 Var3 __________ ...

más de 8 años hace | 0

| aceptada

Respondida
Changing the parameters of a for loops if condition is met
... Q=1 % heating of 1kW QMult=[2 5]; % choices from original posting for Y = 1:NOC for x = ...

más de 8 años hace | 0

| aceptada

Respondida
How can I find the range of empty data in a table
Just use |ismissing| on the original table.

más de 8 años hace | 0

| aceptada

Respondida
Edit the limits in least squares line.
If you need to do more than what |lsline| does which is to draw the line from the axis limits but not give anything else useful ...

más de 8 años hace | 0

Respondida
How to provide 2-Y axis scale in a plot function ?
See doc yyaxis

más de 8 años hace | 0

Respondida
How to plot observations against season and time of day?
Somewhat more enhanced...turned into a function with some input parameters to control some features; uses the same input data fi...

más de 8 años hace | 0

Respondida
How to plot observations against season and time of day?
Well, here's a (not _quite_ so) crude second pass... <</matlabcentral/answers/uploaded_files/110569/untitled.jpg>> Incorpo...

más de 8 años hace | 0

| aceptada

Respondida
How to extract data from multiple data files?
In broad strokes, bdr=readtable('boundaryfilename.txt','delimiter','tab'); d=dir('*.txt'); % use appropriate wildcard t...

más de 8 años hace | 0

Respondida
Sum for every n number within a single column vector
The inside-information way is just sum(reshape(x,48,[])) making use of internal storage order and that Matlab functions ...

más de 8 años hace | 0

Respondida
How could it be that by FFT is not symmetric?
FTrho(2:end-1) = 2*FTrho(2:end-1); You're doubling the DC component, too.

más de 8 años hace | 0

Cargar más