Community Profile

# dpb

Last seen: Today 2012 이후 활성

All

배지보기

#### Content Feed

보기 기준

답변 있음
Find a row of the maximum of a matrix
I fail to see the point in an array of 1960x400 of which 1959 columns are all identically zero??? That aside, what's the issue ...

40분 전 | 0

답변 있음
to build a table with XYZ values
See meshgrid to build the coordinate arrays; you'll have to have the corresponding observation values from somewhere else. Use ...

약 4시간 전 | 0

답변 있음
Large integers saved as csv files are rounded up
WAD. Per the doc csvwrite (NOT recommended, btw), csvwrite writes a maximum of five significant digits.... Use writematrix i...

약 5시간 전 | 1

| 수락됨

답변 있음
Sort twice within the same dataset
Well, it's certainly not totally clear what you mean -- but if you mean sort by multiple columns, see sortrows, the optional sec...

약 8시간 전 | 0

| 수락됨

답변 있음
How to apply moving harmonic average on an array?
Simplest is probably just brute-force -- HM=[Kd_1(1) arrayfun(@(i)harmmean(Kd_1(i:i+1)),1:numel(Kd_1)-1) Kd_1(end)].';

약 23시간 전 | 0

답변 있음
How do I set a parameter based on individual values in an existing array? Should I use a for loop or something else?
The above if...elseif...else...end construct works; there are other ways -- one way w/ MATLAB is fnDL=@(L)interp1([500-eps(500)...

약 24시간 전 | 0

답변 있음
whats wrong with this code?
But 'vektprosent_best_salts' is an array containing two entries per record, not one. Hence matching "70" by itself is bound to ...

1일 전 | 0

답변 있음
when i'm trying to save as excel xls to xlsx format in actxserver it doesnot work
You can't pass an OS command to be executed as the file name; my recollection is also that the .Open command needs a fully-quali...

2일 전 | 0

답변 있음
Why do i keep getting the ereor "The value assigned to variable *** might be unused"
The warning is given because your code never references/uses the frequency vector, f, after defining it -- there's nothing in th...

2일 전 | 1

| 수락됨

답변 있음
Too many input arguments.
So much for help, Steven!!! :) Doncha just love folks who don't document a thing...not. function [lame_eau, CemaParam] = CemaN...

6일 전 | 0

| 수락됨

답변 있음
Use two different color schemes in contour plot
OK, with the explanation that you expect the two contours to not actually overlap, then it's feasible -- here's a sample with an...

6일 전 | 0

답변 있음
How to display datetime value or duration value in Edit Fields (Numeric or String)
Well, yes, do what the error says -- convert the datetime and/or duration to string representation. >> dt=datetime(datestr(now)...

6일 전 | 0

답변 있음
How to pass the index of a loop from one MATLAB App to another in real time
One way is through a memory mapped file <Share-memory-between-applications> Alternatively, although I've no familiarity with th...

7일 전 | 0

답변 있음
How do I turn string "C = A*B" to "data.C = data.A.*data.B " while the equation and variables may change?
If the table name is fixed, then it's easy -- use dynamic field names as explained in accessing data in tables -- and specifical...

7일 전 | 0

답변 있음
Display values barh, YEndPoints/XEndPoints does not work
One of the previous postings -- same idea but uses the internal Offset values from the bar handles... <How-do-i-label-each-bar-...

7일 전 | 0

답변 있음
Plots and legend don't match
Besides Walter's note that you're using ii in the second plot instead of jj,it would be cleaner/simpler to do something like fo...

7일 전 | 0

| 수락됨

답변 있음
How to repeat value in Cell using MATLAB
fnRM=@(v,c)repmat(v,1,c); for i=1:numel(Value) C{i}=cell2mat(arrayfun(fnRM,Value{i},Counts{i},'UniformOutput',false).'); en...

7일 전 | 0

| 수락됨

답변 있음
Need a fix for interp1 error
The simplest is to use [ux,ia]=unique(x); vi=interp1(ux,y(ia),v); This will use the first of the y values for each unique x...

7일 전 | 0

| 수락됨

답변 있음
issue with matlab function
It's not MATLAB's fault, it did exactly what you told it to do...just your instructions weren't what you intended! :) While we...

8일 전 | 0

답변 있음
How to code to perform the following task?
"...randi ... will return only integer-valued values; rand will generate full-precision doubles but you'll have to scale to the ...

8일 전 | 0

| 수락됨

답변 있음
How to apply this for-loop containing '<', designed for a scalar array, to several scalar arrays in a cell array?
There was no need for the loop in the original code -- quantile is already vectorized as are almost all ML-supplied functions. ...

8일 전 | 1

| 수락됨

답변 있음
how to put many small text boxes that display information about individual data points in the same figure?.
Programmatically or interactively??? NB: the doc for interactively includes the following: Display Data Values Using Data Tips...

9일 전 | 1

| 수락됨

답변 있음
'destination' is invalid
This isn't a MATLAB syntax error; it's indicating that your default working directory (the location given by cd at command line ...

9일 전 | 0

| 수락됨

답변 있음
How to fix the event density within bins?
If you want 10 bins each direction, then change the resolution to match; your code use 90 in each direction which will give the ...

9일 전 | 0

답변 있음
+60k Lines on one plot - Too slow
This is way too much data to plot on single figure realistically, of course it's going to take time. But, the use of a loop and...

9일 전 | 0

답변 있음
[Beginer] How can I extract column from several .txt and add them to another .txt ?
OK, the other may be of some use to others; given the revelation of old version of ML in use here I'll just post a different Ans...

10일 전 | 0

답변 있음
[Beginer] How can I extract column from several .txt and add them to another .txt ?
If you do that (create the names with fname=sprintf('BaseName%03d.txt',i); that is), then it's a piece o' cake because dir() ...

11일 전 | 0

| 수락됨

답변 있음
How to plot multiple Graphs with nearly similar name of ordinate arrays
"I have 60 arrays which I called Eigenform1 until Eigenform60. ... And there is my Problem. ..." Indeed it is... "Is there any...

11일 전 | 0

답변 있음
Calling MATLAB scripts from a MATLAB standalone executable
Not directly supported, no. I've not tried building one that uses it, but seems like you should be able to use feval with a dyn...

11일 전 | 0

답변 있음
[Beginer] How can I extract column from several .txt and add them to another .txt ?
See the MATLAB FAQ @FAQ#How_can_I_process_a_sequence_of_files? for a fairly lengthy exposition of several alternatives. I'm par...

11일 전 | 0