답변 있음
trying to find an aproximate value in a data set
disp('I in (A), t in s, Idot in A/S') [Imax,Iloc] = max(I); tmax = t(Iloc); Idot_1 = Imax./tmax; disp([Imax tmax Idot_1]) I...

27일 전 | 0

| 수락됨

답변 있음
How does FindPeaks works?
TMW doesn't reveal innards beyond what is in documentation so the answer is "we don't know". What the documentation says is: "...

27일 전 | 0

답변 있음
fortran do loop to matlab
MATLAB is Fortran w/ DO --> for and CONTINUE --> end But, depending on what "somethings" are, you may well (and probably should...

27일 전 | 1

답변 있음
How to convert a table to a 2d array
Don't make a cell array of tables to start with... x=[]; for i=1:data.numberofselected concatenated=strcat(strcat(strcat(fi...

27일 전 | 0

답변 있음
How to cut out/delete rows in a cell
mu_mean_Mess_20kmh_HA=cellfun(@(c) mean(c(126:end,:)),mu_20kmh_all_VA); Don't need explicit loop; you just forgot the column co...

27일 전 | 0

답변 있음
Matlab Arrays not populating correctly
You've got a typo... population.Chromosomes(M).Gene(:) = [rand, 0]; is writing into the location M(=10) every time.

28일 전 | 1

답변 있음
can anyone please explain X0(1:2) where X0=[0,0,0]' , i wrote X0(2:2) and gave answer 0 i tht it shoudl give error . what i understand is X0(1:2) is 1 row 2 element. please correct me
Linear addressing. Arrays are stored in column-major order. See https://www.mathworks.com/help/matlab/math/array-indexing.html...

28일 전 | 0

답변 있음
Issues with power spectral density calculation of linear ramp
y=detrend(y);

28일 전 | 0

| 수락됨

답변 있음
Read from Excel file as a plain table
[~,~,r]=xlsread('yourfile.xls'); will return a cell array r that is a duplicate of the spreadsheet content with no interpretati...

29일 전 | 1

| 수락됨

답변 있음
SELECT SPECIFIC VALUES FROM AN ARRAY
Presuming from the above you have the cellstr array given, using the simplified string-matching functions, one solution would be...

29일 전 | 0

답변 있음
How to select specific data from one matrix and place it in another
The following can be optimized, but if I understand you want the data reordered by hour for each day, then the basic idea for an...

약 1달 전 | 0

답변 있음
RMS value of non-sinosoidal current
r=rms(x);

약 1달 전 | 0

답변 있음
How to flip heatmap Y axis
hHM=heatmap(table,'x','z','ColorVariable','value'); % make heatmap, keep handle hHM.NodeChildren(3).YDir='normal'; ...

약 1달 전 | 0

| 수락됨

답변 있음
how to cite a reference of matlab 2018 in research paper

약 1달 전 | 0

답변 있음
Why does rem(Centnum,5) give me an answer that is not zero?
>> format long,format compact >> rem(Centnum,5) ans = 1.421085471520200e-14 >> 0.05 cannot be stored exactly in float...

약 1달 전 | 0

답변 있음
How to get (x,y) coordinates of a categorical bar graph?
To do the desired you've got two choices -- when you use a categorical variable, TMW has created a specific axes that is not num...

약 1달 전 | 0

| 수락됨

답변 있음
Data Analysis with uneven data lenghts
Substitute NaN for the missing values; plot() will silently ignore it. Since it appears there are no real zero values, you can ...

약 1달 전 | 0

| 수락됨

답변 있음
Trying to put a scatterplot onto a boxplot
" Both the X and Y variables I input into it are 16x4, ..." As the error message clearly says, Error using scatter (line 78) ...

약 1달 전 | 0

| 수락됨

답변 있음
Precision in writetable()
Sadly, no. A OutputFormat formatting string or NumericPrecision option is not available. I presume since a table can contain a...

약 1달 전 | 1

| 수락됨

답변 있음
How to obtain such a plot?
contourf(X,Y,rhosS+2*rhoEm+3*rhoImPl+4*rhoPl) yields You can set colors as wish...just need to scale the overlapping por...

약 1달 전 | 0

| 수락됨

답변 있음
plotting a graph with different conditions using if statement
What's the desired range for X? Read the "Getting Started" section on array indexing and operations... In short, in MATLAB if ...

약 1달 전 | 1

답변 있음
Reading Multiple Images Using For Loop
RGB=cell(4,1); gray=cell(4,1); Min_loc=cell(4,1); for i=1:4 RGB{i}=imread(sprintf('%d.jpg',i)); gray{i}=rgb2gray(RGB{i}...

약 1달 전 | 0

| 수락됨

답변 있음
Find cells with specific condition
First of all, not all elements of condition contain two elements so you'll have to special-case those or fix that anomaly. Use ...

약 1달 전 | 0

답변 있음
char to double data type
Deprecated (and not recommended) would be dn=datenum(yourdatechararray,'dd-mmm-yyyy'); which, of course, returns the datenum a...

약 1달 전 | 0

답변 있음
How can I make different plots of each row on Matlab and then grab the linear equation of each graph?
data=readmatrix('isochronedata.xlsx','Sheet','Sheet10_'); bv = data(:,5); mass = data(:,2); for i=2:2:numel(bv) %...

약 1달 전 | 0

답변 있음
Correct Axis Not Used
Move the xlim, ylim calls to the end of the function makeNyquist The plotting commands after the limits end up autoscaling agai...

약 1달 전 | 0

답변 있음
How do I plot multiple lines of best fit on a scatter plot?
All of Fit1 = polyfit(x1,y1,1); plot(polyval(Fit1,x1)); should be Fit1 = polyfit(x1,y1,1); plot(x1,polyval(Fit1,x1)); You ...

약 2달 전 | 0

질문

Running MATLAB script from Excel that uses COM itself by user without MATLAB
Have a Matlab function that reads one Excel workbook worksheet and then writes data from it into specific locations after doing ...

2달 전 | 답변 수: 0 | 0

0

답변

답변 있음
What is missing from MATLAB #2 - the next decade edition
Editor won't restrict a substituion to selected area...best it knows of is the function. Uncool in the max! I'm now having to ...

3달 전 | 1

답변 있음
What is missing from MATLAB #2 - the next decade edition
A ready-built insertion method for tables, arrays, etc., so don't have to do all the under-the-hood indexing manually...given an...

3달 전 | 0