回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 2

| 採用済み

回答済み
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年 前 | 1

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 1

回答済み
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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

回答済み
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年 前 | 0

| 採用済み

回答済み
Convert different datetimes into one format
Bestest would be to fix the input source to use the same format but you can try some subterfuges to see if you can sneak by with...

約6年 前 | 0

| 採用済み

回答済み
Hat on letter on x/ylabel WITHOUT using LaTeX?
figure, plot(sort(rand(10,4))) % preliminaries... % engine hTxt=text(4,0.6,'x'); % location arbitrary for given dat...

約6年 前 | 0

| 採用済み

回答済み
How to delete the first 2 rows (Headers) of a txt file ?
Well, once you've got the right content in memory, then just rewrite the file. But, specifically on that has some bearing on th...

約6年 前 | 0

| 採用済み

回答済み
touchstone file could not be processed in matlab
For your specific data file in order to not have to modify the file, the following should return the data in usable fashion... ...

約6年 前 | 0

| 採用済み

回答済み
How to delete the first 2 rows (Headers) of a txt file ?
Or, readtable. But, starting with the above simply file=regexp(fileread('data.txt'), '\r?\n', 'split') .'; file=file(3:end); ...

約6年 前 | 0

回答済み
Merge vector to matrix
In what form do you have the data to start with? If it's a file with the content of the document shown, then just read the file...

約6年 前 | 0

回答済み
How can I use different sizes with text
Ayup...except you'll have to either write as a loop using sz(i) for each since 'fontsize' at the command level is global to all ...

約6年 前 | 0

| 採用済み

回答済み
Error while using a function.I need parentheses in the function header but it wont allow me to do it.
No, don't need any parens (and remove the semicolon, too) in the function dummy argument list, those are surrogate names for the...

約6年 前 | 2

回答済み
How can I colour in different colours 2 rows of ylabel using Latex as interpreter?
Well, it finally dawned on me how to work around your particular wish... hTxt(1,1)=text(-0.1,0.55,{'$\tilde{\mu}_c$'},'Interpre...

約6年 前 | 1

| 採用済み

回答済み
Find the last NaN value in cell array and compare it with the next column
Yeah...the nonnumeric content of the cells containing hex strings changes things...those all return a logical array and not just...

約6年 前 | 1

| 採用済み

回答済み
Multiply nth elements of an array by an element of a different array?
I'll presume the answer to Cyclist's 2nd Q? is to be unchanged...and the other is just using different variables for the posting...

約6年 前 | 1

| 採用済み

回答済み
Replace a single character with a new line in a string
>> s= 'hello there how are you today'; >> strip(split(s,'w')) % if the location is a known character... ans = 2×1 cell ...

約6年 前 | 0

回答済み
normcdf: speed impact by vectorization
Yeah, there is... -- >> a = -50:0.01:50; >> total_cnt = 10000; >> a_mod = repmat(a, 1, total_cnt); >> whos a a_mod Name ...

約6年 前 | 0

| 採用済み

回答済み
using fsolve when the function handle takes in 2 variables that are both vectors
Recast as 4-vector w/ v(1:2) -- x; v(3:4) -- y: fun2=@(x) [exp(-exp(-(x(1:2)+x(3:4)))) - x(1:2).*(1+x(1:2).^2); ... ...

約6年 前 | 0

| 採用済み

回答済み
How to create a vector which displays the letters used in an already existing string?
>> unique(erase(s,' ')) ans = 'adehijlmnosuwy' >> unique(erase(s,' '),'stable') ans = 'helomynaisjwdu' >> >> uni...

約6年 前 | 0

回答済み
Multi-colored tick labels in bold, redux
Looks mostly to be the choices for the rgb triplets aren't very distinctive, but a contributing factor is there just aren't many...

約6年 前 | 0

| 採用済み

回答済み
averaging values in a table in succession
t=readtable('nim123.xlsx'); % read the data t(all(isnan(t{:,:}),2),:)=[]; % remove the blank lines at beginning...

約6年 前 | 1

| 採用済み

回答済み
put a missed data in a cell
If you build the cell content, there's no reason shouldn't be able to just assign it to the cell array where it belongs. Then j...

約6年 前 | 0

| 採用済み

回答済み
[DEPRECATED] What frustrates you about MATLAB?
Why can't MATLAB/TMW figure out to not open new figure default inside command window space so the next command to put on some am...

約6年 前 | 0

さらに読み込む