Respondida
Array loop to find highest value
"Now I want the 5 best values, but I'm afraid if I sort them with the sort function the id's wont match anymore ..." If that's ...

más de 6 años hace | 1

| aceptada

Pregunta


Indexing to table subset from unique
Have a fairly complex table that contains, amongst other things, a Formula field (altho what the field is is immaterial to the q...

más de 6 años hace | 0 respuestas | 0

0

respuestas

Respondida
I want to plot!!!
You left out some very key information MATLAB told you about... ... contour(x,y,psi); Warning: Matrix is singular to working ...

más de 6 años hace | 0

Respondida
Knowing the value in the first and second column of an array, what is the corresponding value in the third column?
Use the MATrix LABoratory features of MATLAB instead of explicit loops where can... width = 0.5; height = 0.1; nIntervalsX = ...

más de 6 años hace | 0

| aceptada

Respondida
How to perform mathematical operation in columns on certain elements and make the other elements zero??
Don't try to get too fancy...sometimes just deadahead is the simplest and best (and probably fastest, besides)... a=10; ...

más de 6 años hace | 0

| aceptada

Respondida
how to convert the cell to matrix
Presuming the input is a cell array, m... >> cellfun(@(s) sprintf('%d',fliplr(s)),m,'UniformOutput',false) ans = 6×1 cell a...

más de 6 años hace | 0

Respondida
How to run a Absolute value for formula when there's a variable?
Because >> y=abs('Temperature'); >> char(y) ans = 'Temperature' >> You passed the literal character string 'Temperatur...

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 0

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 1

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 1

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

más de 6 años hace | 1

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 1

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

más de 6 años hace | 0

| aceptada

Cargar más