Answered
Interpolation Between Two known data points
You're not looking across the variations in your two variables--another illustration why it's better to not create multiple vari...

6 years ago | 0

| accepted

Answered
if statement within for within while loop is not fullfilled but loop is exited
if randomizeOrder(randomizeOrder(:,7)==i,5) == randomizeOrder(randomizeOrder(:,7)==i+1,5) == randomizeOrder(randomizeOrder(:...

6 years ago | 0

Answered
apply function to all fields in a structure array
Why the nested structure? That's where the problem arises---convert to a struct array, S as >> S=F1 S = 1×2 struct array ...

6 years ago | 0

Answered
How to read excel file?
Reading isn't too hard; interpreting what what you have is lacking some information... First, use the detectImportOptions funct...

6 years ago | 0

| accepted

Answered
Sort variables form lowest to largest but by keeping their name
Per usual, the way in MATLABB is to not used explicitly named variables -- use an array and if you need some auxiliary name/id t...

6 years ago | 0

Answered
HELP: Why poly11 fit is not fitting my data?
>> zX=(X-mean(X))/std(X); >> zY=(Y-mean(Y))/std(Y); >> f=fit([zX,zY],Z,'poly11') Linear model Poly11: f(x,y) = p00...

6 years ago | 1

Answered
How to remove extra spaces in the graph?
xlim([x(1) x(end)])

6 years ago | 0

Answered
Change axis colour to a user-define color
Use rgb color form: color[rgb]{specifier} Replace specifier with a three-element RGB triplet. \color[rgb]{0,0.5,0.5} ...

6 years ago | 2

| accepted

Answered
Find a word in a file then pick the value next to it
buf=importdata('thibaut.dat'); % get the data in; how is your choice...importdata leaves .text, .data ix=contains(buf.tex...

6 years ago | 1

Answered
loglog plot command not working,gives linear plot. I need help to make it work
The plots are correct; you simply do not have enough dynamic range of the variables from minimum to maximum values that the loga...

6 years ago | 0

| accepted

Answered
How to calculate the mean of a certain column of tables inside a cell
Close but not quite right syntax...many ways you can do, but test_means = cellfun(@(x) mean(x.Var1),test); should do the trick...

6 years ago | 1

| accepted

Answered
Error using readmatrix - Unable to determine range. Range must be a named range in the sheet or a single cell within 'XFD1048576'.
Given that it appears readmatrix is fatally flawed for you use case, try something like First = 1000e3; Last = 1200e3; L=Fir...

6 years ago | 0

Answered
num2str default format
'%.5g' is default format iirc what num2str does and the way %g counts precision.

6 years ago | 1

Answered
Multiple selection of data (dates,months,days,hours)
Attach text that folks can do something with instead of pictures...or just attach the .csv file itself. Use split to break the ...

6 years ago | 0

Answered
Error using readmatrix - Unable to determine range. Range must be a named range in the sheet or a single cell within 'XFD1048576'.
"Worksheet and workbook specifications and limits Feature Maximum limit Open workbooks Limite...

6 years ago | 1

Answered
How to rotate the annotation text box?
Yes, as both Answers you referred to note specifically you can't rotate an annotation textbox and to use text object or textarro...

6 years ago | 1

Answered
I want to create random number and convert that number to milliseconds to hours , minutes , seconds ,
randmsec=milliseconds(randi(1E6,10,1)); >> randmsec.Format='hh:mm:ss.SSS' randmsec = 10×1 duration array 00:08:25.95...

6 years ago | 1

Answered
Find the index of the first integer of an array in another array
Easier to find repeated patterns with string pattern searches than as vector arrays-- ix=strfind(sprintf('%d',ismember(B,A)),re...

6 years ago | 2

| accepted

Answered
How to plot a table in a way that first column and first raw are x and y axis?
There is no data for the (0,0) coordinate so it can't be in the X,Y vectors---and the Z array must be size(Z)-->[m,n] where X,Y...

6 years ago | 0

| accepted

Answered
How can I retime my timetable with a 10days timestep?
Read the documentation... TT2 = retime(TT1,'regular',method,'TimeStep',dt) calculates regularly spaced row times using the time...

6 years ago | 0

| accepted

Answered
Is there a faster alternative for Cell array?
Just store the class data with the position/time variable in 2D array. Use grouping variables to process by class either singl...

6 years ago | 2

| accepted

Answered
How can I extract matrix without NaN values
A1=A.'; B1=B.'; % so can operate by row instead column... isf=isfinite(B1); >> B1=reshape(B1(isfinite(B1)),4,[]).' B1...

6 years ago | 1

Answered
Error combining splitapply and regress
First argument is just a function handle or an anonymous function -- you mixed metaphors by trying to call a function and call t...

6 years ago | 0

| accepted

Answered
Select matrices with nonzero rows from a bigger matrix ?
Any number of these kinds of Q? on Answers -- under "runs" or any number of other terms...but, it's pretty simple to code from s...

6 years ago | 1

Answered
Unrecognized function or variable 'filenames'. Error in pengujian_sistem (line 4) jumlah_data = numel(filenames);
filename = dir(fullfile(image_folder, '*.jpg')); jumlah_data = numel(filenames); You returned the variable filename (singula...

6 years ago | 0

| accepted

Answered
What is going wrong with this code
Alternate solution: ix=kron([1:numel(0:13)/2].',ones(2,1)); n=accumarray(ix(c+1),ones(size(c))); >> n n = 14 15 ...

6 years ago | 0

Answered
What is going wrong with this code
>> n=arrayfun(@(i1,i2) sum(iswithin(c,i1,i2)),0:2:13,1:2:13) n = 14 15 10 14 14 17 16 >> type iswithin ...

6 years ago | 0

Answered
Finding common values in a matrix and create a chain
Same idea, different cat skinned to get there... u=unique(A(:,2:end)); % look for the...

6 years ago | 0

Answered
How can I perfom an interpolation?
time = linspace(-1, 1, N); frames = cat(4,zeros([size(codeAlpha),numChannels,bufferSize])); for i = 1:length(time) frames...

6 years ago | 0

Answered
Is it possible to use a subplot grid to obtain as good or better resolution than that provided by the stackedplot function?
I've never tried to build anything with that many traces as separate subplots but I don't see why you couldn't have the same res...

6 years ago | 0

| accepted

Load more