Answered
Undefined function 'wprec2' for input arguments of type 'double'.
Without the actual code sequence we can't tell but the doc for wprec2 says it expects a wavelet packet tree object. If you've ...

27 days ago | 1

| accepted

Answered
How do I cite Genetic Algorithm in a published journal or paper, because I use it in my code and I wrote about the documentation in my thesis so I want to cite it?
<Mathworks.com How-do-i-cite-matlab-in-a-bibliography-or-a-published-journal?> is the corporate answer; your institution undoubt...

27 days ago | 0

Answered
How to get non interger numbers in Wilkinson notation using fitlm
Can't be done with Wilkinson notation -- it only includes integral powers. In this regard, note that "The * operator (for inter...

29 days ago | 0

Answered
error bar plot using double y axis
You could, sure, but to make things line up, you'd have to do something like scale the RH axes by 100 for those points to line u...

1 month ago | 0

| accepted

Answered
Function syntax / execution
" (pretty much ignored the input values in the command line and took the input from the input files)" No "pretty much" about it...

1 month ago | 1

Answered
scatter map with different markers
Call scatter once for each group with the chosen marker; save the handle array to the scattergroup objects returned. legend will...

1 month ago | 0

| accepted

Answered
converting an excel formula into matlab
resV = vecnorm(vel,2,2); % 2-norm by row time = 1:1935804.'; % dunno what time represents, use a tim...

1 month ago | 0

Answered
How to update the Struct value in the workspace from the MATLAB GUI app designer?
A struct variable is a variable, just as any other... function testit(s) v=inputname(1); s.year=s.year+10; assignin('b...

1 month ago | 0

| accepted

Answered
Add Cells/Matrices Row by Row
"matrix of about 600,000 rows and 14 columns. This data is a 6000 different bins with 100 columns each. So what I am trying to d...

1 month ago | 0

Answered
Trouble with for-loop and fft
What's the purpose of the loop over k? You have the time history apparently as variable x_0_003 in the table which one presumes...

1 month ago | 0

Answered
fprintf uiputfile of multiselect data file doesnt work....
fprintf(fout,'%s %f %f\n',ntropy, komph(:), kompf(:));% This is the [expletive deleted--dpb] output that brings me so confused ...

1 month ago | 0

Answered
Performing multiple Operating system commands in a loop
First, you're using the command form and the ! operator, not the functional form for system() command so as the message is telli...

1 month ago | 0

Answered
How can I change bar graph x-axis?
[a,ia] = sort(Scores_Avg,2,'descend'); % use more meaningful index variable bar(a) % ...

1 month ago | 0

| accepted

Answered
Preallocating str for speed
No loop needed here -- using relationship to ASCII coding and that MATLAB char() strings are just arrays, write T='95675467427...

1 month ago | 0

Answered
How to code a faster loop
The biggest slowdown in your code above is you haven't preallocated any of the arrays x, y, xt, yt, s, data so they're all being...

1 month ago | 1

| accepted

Answered
Looking for a faster way of finding the first element larger than a given number in a sorted array
With the JIT compiler, loops are pretty quick any more...in fact, with the starting point as the beginning loop index, that may,...

2 months ago | 2

| accepted

Answered
How to find y-axis data for a certain x-axis value
Your X variable is repeating in sets of three so when you use all 12 elements as a vector it's multi-valued in y. interp1 then ...

2 months ago | 0

Answered
Splitting a file into multiple files based on trigger words in the first column.
This is where a filter is probably best given size of file and unknown numbers between sections...and since don't need to have a...

2 months ago | 0

Answered
Why does my MATLAB icon look like a sheet of paper?
See <Why-does-my-matlab-icon-look-like-a-sheet-of-paper-on-my-windows-based-computer?> In short, somehow the link to the defaul...

2 months ago | 0

| accepted

Answered
for loop help with loop range
" extract data of the first 3 columns (x,y,z) for sensorIdx 1,2,5,6,7. For sensorIdx 3 and 4 I want to extract columns 5,6 (x,y)...

2 months ago | 0

Answered
how to extract "F-statistic vs. constant model" value for fitnlm programmatically
For some unknown reason, TMW didn't package the summary statistics with the model -- you have to run anova on the returned model...

2 months ago | 0

Answered
Inverting curves colors when the distance of their points is 0
Probably simplest is to just plot a new set of curves of the chosen color where the logical indices are -- each present line is ...

2 months ago | 0

| accepted

Answered
Speedup table lookup / interpolation
Slight alteration; didn't try to time it... [~,ix]=min(sum(abs(states_list-state),2)); is same computationally... >> x=randi(...

2 months ago | 0

Answered
How to fix the "Improper index matrix reference" error in my Data Extraction coding?
hF=openfig('NF power_Aulayers_etch_glass-by-glass_xz.fig'); hAx=hF.Children; % the axes object handle hS=hAx.Children; ...

2 months ago | 0

Answered
How to pre-select a value in a list box (GUI)
You mean a listdlg box? The 'InitialValue' property (default value 1) is the index to the selected element(s) when the box is o...

2 months ago | 0

Answered
creating a loop for a specific computation
OK, just making sure...although it may be interesting, still not positive it's of all that much use in the end...to collect data...

2 months ago | 1

| accepted

Answered
Convert an array of type char to hex values
I went back and found your first posing of roughly a week ago -- and made a comment there. In short, take Walter's advice from ...

2 months ago | 0

Answered
I am getting the following error in my code: "Unrecognized function or variable 'f'. " How do I correct this error? someone can help me in this TIA.
You're using f in line 1 while you don't define it until line 3. Move line 1 to anywhere after but before use amp in line 11 --...

2 months ago | 0

Answered
How to plot only the matches of two different datetime?
Convert A and B to timetables, then use innerjoin ttC=innerjoin(ttA,ttB); will leave timetable ttC with the times that are uni...

2 months ago | 0

| accepted

Answered
How do i calculate the sum of each row
I'd suggest to use readtable instead, first... T = readtable('studentmarks.txt'); T.TotalMarks=sum(T{:,3:end},2); presuming t...

2 months ago | 1

| accepted

Load more