Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
I would put a hard character limit of (say) 50 characters on the Title -- mandate that the question is in the text, do NOT even ...

8 years ago | 1

Answered
Hello, i want to display separate (side by side) bar on one graph. below is my code but its display bars on single column. and image what i should do?
AMENDED: Rank = [15678 10987 15243 3467 1234; 1111 3456 13456 3345 1038].'; C = categorical ({'Google','Bin...

8 years ago | 0

| accepted

Answered
Explode cell that are into another cell
OK, I overlooked the regular expression in the format string that sucks up all of those extra blanks at the end of the odd-man-o...

8 years ago | 1

Answered
Preallocate char array: Wrong values
Any array must be rectangular; char() arrays are no different. The array must be as wide (have as many columns) as the longest ...

8 years ago | 0

| accepted

Answered
compile MatLab into standalone exe, how to pass matrices as input.
"[A]rguments can be passed to standalone applications created using MATLAB® Compiler™ in the same way that input arguments are ...

8 years ago | 0

| accepted

Answered
Change figure legend horizontal spacing
Something legend gives no control of directly Increase the width of the legend will spread them out hLg=legend('gefeuert','ni...

8 years ago | 1

Answered
xlswrite Issue: not writing an entire column
The first column of data is a column of cells each containing a cell containing... xlswrite can't handle that. data(:,1)=...

8 years ago | 0

Answered
Percentage of each elements in a 3d matrix
There's no point in the output array having P planes... V=value; [~,~,N]=size(A); B=100*sum(A>V,3)/N;

8 years ago | 1

| accepted

Answered
How to make a while loop fill out an array?
Tlist = { 'DEB' 'DEB' 'TFR' 'DEB' 'DD' 'DEB' 'FPI' 'DEB' 'CPT'}; lup={'DEB','DD','CPT','FPI','FPO','CHG','TFR'}; >> [~,Tt]=i...

8 years ago | 1

| accepted

Answered
How can i find the average for specific rows
Put into a table and use grpstats and friends...

8 years ago | 0

Answered
what is wrong with the following code, i get the following massege :Subscripted assignment dimension mismatch. Error in Untitled3 (line 14) y2(i)=purelin(y22);
... x=b(:,i); y1=w1*x+b1; y1=tansig(y1); y22=w2*y1+b2; where b --> 3x1 b1 --> 3x1 b2 --> 2x1 w1 --> 3x3 w2 --> ...

8 years ago | 0

Answered
How to extract a subset of person identified data from several excel files into one excel file
Well, there's a lot of code that will read a spreadsheet, but there's probably nothing that you can just blindly throw at the pa...

8 years ago | 1

| accepted

Answered
using acummarray to average several columns at a time?
t=readtable('sampledata.xls','ReadVariableNames',0); % read file to table t.Properties.VariableN...

8 years ago | 2

Answered
creating a vector where each element needs to be calculated before hand
If X is a vector of numel(X) = 6, then Z=A*exp(B*X); if A,B are constants; otherwise it depends on what they are and what is t...

8 years ago | 0

| accepted

Answered
Find number of row in a table.
Preliminaries... E1 =[1 1 4 5 1 1 3 1 1 1 2 5 1 1 1 1 3 ...

8 years ago | 1

| accepted

Answered
How to read Hd5 files in a folder with respect to dates which is itself in the file name
If you just want to retrieve files of a given date, then the simplest solution is mydate='01DEC'; % the dat...

8 years ago | 1

Question


Alternate Command Processor on Windows
Bad, bad, TMW! :) Appears the shell commands under Windows don't pay any attention to what user COMSPEC is...one gets CMD.EXE ...

8 years ago | 1 answer | 1

1

answer

Answered
Polarplot axis label: how to edit the value?
hPP=polarplot(x,y); % plot, save handle hPA=hPP.Parent; % retrieve polar axes handle (parent of polar...

8 years ago | 1

| accepted

Answered
Error in ode45 Question
The error message is quite explicit as to at least one problem -- the output from your function MSsys must be a column vector an...

8 years ago | 0

Answered
Extract values from a matrix using a for loop
for i=1:20 A1=A(i:i+2,i:i+2); ... The first indices into A are the same as the second expression. i i:i+2 A subsc...

8 years ago | 0

Answered
Dimensions of arrays being concatenated are not consistent error.
result_file.ActualSpeaker = T.Label{1}; ... result = [result; struct2table(result_file)]; You're trying to catenate char() ar...

8 years ago | 1

Answered
how to average multiple monthly data?
Convert to table or timetable and use retime and/or findgroups/splitapply for these kinds of operations.

8 years ago | 0

| accepted

Answered
Char function for a cell array
The cell array would be >> Name = {'MATE'; 'GEAR'; 'FIVE'; 'SLOW'} % define column cellstr array Name = 4×1 cell array ...

8 years ago | 0

Answered
How to seperate similar data stacked up in one coulmn into multiple columns
This is going to be somewhat of a pain in the proverbial appendage...it's not even clear what constitutes an iteration for certa...

8 years ago | 0

| accepted

Answered
Find average for each year
That should work fine excepting you didn't allocate for the different means by year and overwrote the variable meanT on each ite...

8 years ago | 0

| accepted

Answered
How to calculate the mean for the number of occurances
u=unique([C{:}]); n=cell2mat(cellfun(@(x) histc(x,u),C,'uni',0)); n(n==0)=nan; x=cell2mat(arrayfun(@(x,n) repmat(x,1,n),u,rou...

8 years ago | 0

| accepted

Answered
How can I set the FormatSpec to read this numerical value?
ML doesn't have the facility built into any of the text conversion routines to handle the omitted exponent indicator; some Fortr...

8 years ago | 0

| accepted

Answered
Converting C++ to Matlab code!
disp("\nReading values from 'xxxx3padata.txt' file.....") val=importdata('xxxx3padata.txt'); Rmn=mean(abs(val)); Rms=rms(va...

8 years ago | 0

| accepted

Answered
I am unable to understand what happening in this code of Variance of 3*3 neighborhood
Just the point(s) r away from each point in the input image array in each plane. If the image were 256x256, and r were 5, say, ...

8 years ago | 0

Answered
Hi All, I have several days worth of time stamped data. Unfortunatly the date has not been provided. How can I convert the time to datetime and increase the date by one day when the time passes 00:00:00? Thankyou
tsd=readtable('tsd.txt'); tsd.Var1=datetime(tsd.Var1); du=[duration(0,0,0);diff(tsd.Var1)]; ix=find(du<0); tsd.Var1(ix:end)=...

8 years ago | 0

| accepted

Load more