Respondida
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...

alrededor de 6 años hace | 0

Respondida
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.

alrededor de 6 años hace | 1

Respondida
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...

alrededor de 6 años hace | 0

Respondida
Issues with power spectral density calculation of linear ramp
y=detrend(y);

alrededor de 6 años hace | 0

| aceptada

Respondida
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...

alrededor de 6 años hace | 1

| aceptada

Respondida
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...

alrededor de 6 años hace | 0

| aceptada

Respondida
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...

alrededor de 6 años hace | 0

Respondida
RMS value of non-sinosoidal current
r=rms(x);

alrededor de 6 años hace | 0

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

alrededor de 6 años hace | 4

| aceptada

Respondida
how to cite a reference of matlab 2018 in research paper
Or https://www.mathworks.com/matlabcentral/answers/286213-how-can-i-cite-matlab-software-in-apa-style?s_tid=answers_rc1-1_p1_Top...

alrededor de 6 años hace | 0

Respondida
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...

alrededor de 6 años hace | 0

Respondida
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...

alrededor de 6 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 6 años hace | 0

| aceptada

Respondida
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) ...

alrededor de 6 años hace | 0

| aceptada

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

alrededor de 6 años hace | 4

| aceptada

Respondida
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...

alrededor de 6 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 6 años hace | 1

Respondida
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}...

alrededor de 6 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 6 años hace | 0

| aceptada

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

alrededor de 6 años hace | 0

Respondida
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) %...

alrededor de 6 años hace | 0

Respondida
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...

alrededor de 6 años hace | 0

Respondida
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 ...

alrededor de 6 años hace | 0

Pregunta


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 ...

alrededor de 6 años hace | 0 respuestas | 0

0

respuestas

Respondida
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 ...

alrededor de 6 años hace | 3

Respondida
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...

alrededor de 6 años hace | 0

Respondida
Stacked bar chart and writing value inside each bar and a value in top of the bar
numNearbyCHs=20; A=randi([100,1000],numNearbyCHs,1); B=randi([100,300],numNearbyCHs,1); C=randi([2,30],numNearbyCHs,1); D=ra...

alrededor de 6 años hace | 0

| aceptada

Respondida
Error using cat: Dimensions of matrices being concatenated are not consistent.
latitude = [-3.63965:-0.00898:-8.12601]; longitude = [-37.5098:0.00906:-32.9831]; str='/home/pink/Documents'; folder_name =...

alrededor de 6 años hace | 0

Respondida
Looping through a random matrix to see if any element is >0.5
random_number_matrix = rand(4,8); isGt=(random_number_matrix>0.5); display(random_number_matrix(isGt))

alrededor de 6 años hace | 0

Respondida
How can I create a matrix composed of some data in another matrix?
"...in this new matrix data with a first data being in the cell located on line 5 then the following data is 4 lines below the f...

alrededor de 6 años hace | 0

| aceptada

Cargar más