回答済み
Create an array of numbers
[R0,ixR0]=min(distance_matrix(distance_matrix ~= 0)); x=(1:numel(distance_matrix))-ixR0;

23日 前 | 0

回答済み
How can one do this calculation?
Assuming you put it into a table as @Steven Lord suggested, then tHi2=maxk(tData.Temperatures,2,2); tHi2=tHi2(:,2); % get t...

23日 前 | 0

| 採用済み

回答済み
What is the meaning of position in the code? Why position(2) then position (1)
position is just a dummy argument in the various functions -- and the order required by the <rectangle> function they call is t...

24日 前 | 0

回答済み
Unequal left and right sides of matrix
Going at it hard way...use MATLAB vector operations -- M=cornerUlLat-[0:tiledimensions-1].'*delta_lat; % create first vecto...

24日 前 | 1

| 採用済み

回答済み
Why am I not getting a log scale on my x-axis?
Has nothing to do with log or scale but plot(y2,y3,Color="black",LineStyle="-",LineWidth=1.5) is bad syntax -- the error messa...

24日 前 | 0

回答済み
How can I import and read a .plt file?
That's essentially trivial since they're just text files -- to upload one, just rename it ".txt" temporarily; what the name is d...

25日 前 | 0

| 採用済み

回答済み
Interpolation based on three arrays. Problem: entering values for two parameters to get a third gives me the nearest input data values (no interpolation).
You left out the most important part of the response there and didn't pay attention to one of the comments about use of 'nearest...

25日 前 | 0

| 採用済み

回答済み
How to use logical indexing to return elements of a signal?
>> whos -file signal Name Size Bytes Class Attributes force_y_r 9607x1 768...

25日 前 | 1

回答済み
Plotting with small time values in MATLAB
As above notes, there isn't sufficient precision in the time vector to differentiate between roughly 150 consecutive measurement...

25日 前 | 1

回答済み
Matlab lookup table interpolation
OK, the first case with some assumptions... commandhistory M1=repmat([10:10:50].',1,3); M2=repmat([35:10:75].',1,3); K=[1:3...

26日 前 | 1

| 採用済み

回答済み
Calculate mean of numeric column vector based on repeated rows in a string array
First, don't use a string array to hold the numeric data -- you don't show us how you got to the above, but if it's coming from ...

26日 前 | 0

| 採用済み

回答済み
Plotting with small time values in MATLAB
AM coffee apparently hadn't yet kicked in...dawned upon me later what you're undobutedly looking for is t=TimeValues1-TimeValue...

26日 前 | 1

回答済み
How to build a" "for" cycle to concatenate strings
You're overthinking the problem -- >> N=3; >> compose("VAR%d=",[1:N].') ans = 3×1 string array "VAR1=" "VAR2=" ...

27日 前 | 0

回答済み
Add multiple x axis in UIAxes object with app designer
After R2019b, TMW suggests using tiledlayout -- although the example isn't there but at <Graph-with-multiple-x-axes-and-y-axes>....

27日 前 | 0

| 採用済み

回答済み
variable is not saving in a for loop
"... where is the error. (?)" ... xMax3 = doppler3(index3); yMax3 = pks3; ... overwrites/redefines the two variables in...

27日 前 | 1

| 採用済み

回答済み
How can I extract data from the following Matlab figure, there are multiple lines.
Already you have them in plot(lambda,Fri(lambda)) if you'll just save ... y(:,i)=Fri(lambda); hL(i)=plot(lambda,y(:,i))...

27日 前 | 0

| 採用済み

回答済み
in a matrix m, how to select the rows after m(m(:,1)==1,2)
Don't try to play MATLAB golf; use a temporary variable to help... ix=find(m); % ~=0 is implied; only the one eleme...

27日 前 | 0

| 採用済み

回答済み
Boxplot Label Numberical Organization
Not an option w/ builtin boxplot, sorry. You can make it work with the alternate boxchart function, but the large scale factor ...

28日 前 | 0

回答済み
How can I remove the value of a vector that is less than the next value?
MinDiff=3; xfirstpeakstore= [664 705 728 803 824 849 893 895]; ix=find(diff(x)<MinDiff); xfirstpeakstore(ix)=[];

28日 前 | 0

| 採用済み

回答済み
Readtable to put text into columns from .CSV file
Not at all clear why you would want a quoted string where the quotes are over the whole line instead of fields, but that's a fai...

28日 前 | 1

回答済み
Is there a way to make a categorical array of colors?
See above for rants/railings and a little background from my perspective...more directly to the Q? here -- You can't create a c...

28日 前 | 1

| 採用済み

回答済み
I have data every 14, 15 or 16 minutes and met data every 1 minutes. I want to average met data according to the 14, 15 and 16 minutes
load Sample1 load Sample2 ttM=table2timetable(Mettimedata); ACSMtimedata.TimeACSM=datetime(ACSMtimedata.TimeACSM,'InputFormat...

28日 前 | 1

| 採用済み

回答済み
Read run-length encoding data from a table
Not sure what the next step(s) are, but to convert each row use something like data=reshape(str2double(split(tT.EncodedPixels(i...

30日 前 | 0

回答済み
can nay one help to understand this code
In a reasonable amount of time, undobutedly not other than the obvious that the overall function appears to solve the network st...

30日 前 | 0

回答済み
Exciting latex file using Matlab giving errors
The system function uses a shell program and spawns a new process in which the command is executed; hence, the environment seen ...

30日 前 | 0

回答済み
Legality of reading Matlab files
That would depend on the ownership and provenance of of the .mat files themselves; as long as you don't use pirated MATHWORKS co...

約1ヶ月 前 | 1

回答済み
How to plot only specific contours in matlab?
Did you not read contourf input syntax descriptions? The third option down says contourf(___,levels) specifies the contour lin...

約1ヶ月 前 | 1

回答済み
Grouping and comparing Data
One way amongst many -- BINS=categorical([-1:1],[-1:1],["Low","Med","High"]); % the end categories YrTotal=sum(sign(M_Avg...

約1ヶ月 前 | 0

回答済み
Randomly assort variables into 3xN matrix
V=[v1;v2;v3]; % a vector of the three possible values (set elsewhere somehow; not explained) ix=randperm(3); % the ra...

約1ヶ月 前 | 1

回答済み
Extract values from a data table and create a new table
What did you try? Have you looked at the "Getting Started" section on array indexing/addressing; specifically logical indexing?...

約1ヶ月 前 | 0

もっと読み込む