Answered
getting this message "Operands to the || and && operators must be convertible to logical scalar values." trying to allocate a value to a cell.
app.HSV =0:15; % app.HSV app.tcof = 0:400000; app.invf =0:1; are all vect...

7 years ago | 0

| accepted

Answered
I need to help with this code error in undefined function or variable 'ArrayRT1' and plot (ArrayRT1,ArrayRT,2ArrayRM1,ArrayRM2) ,grid
I run your code and find-- ... RTM = 40000 Undefined function or variable 'ArrayRT1'. Exploring, one finds th...

7 years ago | 0

Answered
Does intrp2 provide 'bicubic' interpolation ?
The 'cubic' method for interp2 is bicubic; it just uses the word 'cubic' to keep consistency in interface with interp1 I don't ...

7 years ago | 0

Answered
Extract and replace data in the middle of a large text file
I don't suppose is a fixed-length record file by any chance, is it? You can, of course, have grep return the byte offset to the...

7 years ago | 0

| accepted

Answered
Switch case option valid for two cases?
But, presuming 'ps' means to do both 'p' and 's', you need that case as well as written anyway because in Matlab the switch bloc...

7 years ago | 0

| accepted

Answered
Finding Particular Values In 3D Plots
"... finding the average value of the data in the z-direction throughout all time (i.e. the average z-value for the 1000 frames)...

7 years ago | 1

| accepted

Answered
Heatmap font size. Can you change axis and cell label fonts independently?
>> hHM = heatmap(tbl,'Smoker','SelfAssessedHealthStatus'); >> hHM==gca ans = logical 1 >> So, the Answer to the Q? i...

7 years ago | 0

Answered
How to conditionally assign characters for a new column in a table
Expanding a little on Walter's comment... Lat = [49, 50, 51, 52].'; % create the right orientation in t...

7 years ago | 0

| accepted

Answered
Label contour plot elevation marking with text
By using clabel instead, yes...but takes some munging-on there, even. Using the example from countour as starting point-- x = ...

7 years ago | 0

| accepted

Answered
Plot matrix with columns of same color
You mean x=1:100; y=randi(420,numel(x),4); c={'r','g','b','k'}; figure hAx=axes; hold on xlim([0 11]) arrayfun(@(i) plot...

7 years ago | 1

| accepted

Answered
How to write elements of a nested cell array to an excel?
Since all aren't same size, the trivial solution of xlswrite(cell2mat(WS)) is out unless you augment the shorter to the length...

7 years ago | 0

Answered
generate a sequence from matrix
Interesting...kinda' cute solution...altho note that the suggested answer is wrong; the minimum for row 7 is the 3 in column 2, ...

7 years ago | 0

| accepted

Answered
How to truncate textscan reading
You can't on read. Just round() the data to whatever precision you want after reading it in. x=round(x,1,'significant'); See ...

7 years ago | 0

| accepted

Answered
A Peak in y-axis dwarfing the other plot points
You have basically one of three choices -- Set ylim where you want it and let the rest of the graph go off the top and not be s...

7 years ago | 1

| accepted

Answered
display every value of a matrix in histogram
Ah! The question isn't about a histogram at all...or, it is, but not a histogram of the data but just plot the counts computed ...

7 years ago | 0

| accepted

Answered
create matrix from other two matrices
t=reshape([reshape(temp_n1,8,[]);reshape(temp_n2,3,[])],[],1);

7 years ago | 0

| accepted

Answered
display every value of a matrix in histogram
hist(val,unique(val))

7 years ago | 0

Answered
Polynomial of Random Variables
Then b=[1 0 0 1 2]; % coefficients 4th order poly P=polyval(b,normrnd(mu,s,m,n)); % generate mxn rand p...

7 years ago | 0

| accepted

Answered
how to have labeled and unlabeled ticks on the x axis
DOH! figure hAx=axes; xlim([0 2500]) hAx.XMinorTick='on'; Now, this may or may not produce the desired number of minor tick...

7 years ago | 0

Answered
how to have labeled and unlabeled ticks on the x axis
Actually, the expedient way may be to have two axes...the one with the desired tick labels and the second overlays it with the o...

7 years ago | 4

Answered
How to detect change in mean value of a signal
The linear or similar trend is probably detectable as Jan says by fitting linear trend line and testing for nonzero slope..._IF_...

7 years ago | 0

Answered
how to have labeled and unlabeled ticks on the x axis
Not quite as easy as one might think...at least unless somebody else can come up with more expedient route... figure ...

7 years ago | 0

Answered
Extracting data from matlab figure into .txt file
How on earth was that figure created??? In a loop plotting a new complete line for every iteration of each point, apparently......

7 years ago | 1

Answered
How to use linear interpolation for filling with 3s inside empty spaces in a matrix of os and 3s
for i=1:size(M,2) ix=find(M(:,i)==3); if numel(ix)>1 M(ix(1):ix(end),i)=3; end end

7 years ago | 0

Answered
Extract maximum value out of two column in a row & delete the last row
B=[A(:,1:end-2) max(A(:,end-1:end),[],2)]

7 years ago | 0

| accepted

Answered
How can I change marker size and form based on diameter and ellipticity values over frame?
scatter() will let you change the marker size and color for each point whereas plot() is a marker for each line...of course, cal...

7 years ago | 0

| accepted

Answered
[Solved] Fitting exponential decay function
You forced the model to have f(0) = 0.148356 + 0.1291 = 0.2775. It takes a really large decay constant to make up for that. T...

7 years ago | 1

Answered
Using readtable to load excel files in a different folder
folder_in='Formatted_Excel'; % directory of interest d=dir(fullfile(folder_in,'*.xls*'); ...

7 years ago | 0

| accepted

Answered
Assigne Values/Attribute to elements of an array
>> V = categorical(v,v,cellstr(['A':'E'].')) V = 1×5 categorical array A B C D E >> ADDENDUM:...

7 years ago | 0

| accepted

Answered
Floating point error incrementing in while loop
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

7 years ago | 1

| accepted

Load more