**Statistics**

RANK**78**

of 247,471

REPUTATION**1,614**

CONTRIBUTIONS

**1** Question

**630** Answers

ANSWER ACCEPTANCE **
0.0%
**

VOTES RECEIVED**139**

RANK

of 17,243

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to do running another .m file that calls this .m file?

Save the followint into a file, for example, 'my_script.m': x = [5 10 12 3]; y = [11 8 3 3]; plot(x,y, 'g') In a separate sc...

1 hour ago | 0

Convert Python code to Matlab code

% create some files for testing writematrix([3 4], 'test1.txt'); writematrix([5 6], 'test2.txt'); dir folder_path = ''; c...

3 hours ago | 0

Count word except some special case

x ='some text here with a and an and the'; % you can use "lower" to convert it into lower case % % consider "split" to split ...

4 hours ago | 0

How to convert point plot to line plot?

Fp = 1000; %Bandpass Freq Fs = 2000; %BandStop Freq SF = 10000; %Sampling Freq Pr = 0.1; %Passband ripple Sr = 0.001; %S...

5 hours ago | 0

| accepted

how to use a while loop for switch case

repeat = true; while repeat transactionType= input('1:withdraw 2:deposit 3:account balance 4:end use'); repeat = fals...

6 hours ago | 0

Can someone help me understand this code?

[throwAgain, RV]=MCO_throwAgain() function [throwAgain, RV]=MCO_throwAgain() % MCO_throwAgain outputs the number of random thr...

2 days ago | 1

How do I use a loop to remove all of the noise signal segments?

load signal % detect the env y = sqrt(2)* movstd(x, [200 200]); figure plot(x); hold on plot(y) % extract signal z...

2 days ago | 0

Inputting Date Time data and presenting as a graph

A = readtimetable('08_underwater.csv') A.Properties.VariableNames{1} = 'Light'; plot(A.Datetime,A.Light)

2 days ago | 0

How to identify the hourly/daily missing data points?

% Assume you have the observation as a datenum vector % Here we generate an example datenum vector observation = datenum(2021,...

2 days ago | 0

| accepted

FUNCTION shift of vector's position

Here is some pseudo code: %1. Let the vector index be idx = (0:n-1) + 1 %2. When rotating to right by "shift" (which can be ...

2 days ago | 0

how to create an input window for more than two variables

prompt = {'r1','r2','r3','r4','o2','o2p','o2pp'}; dlgtitle = 'input'; dims = [1, 35]; answer = inputdlg(prompt,dlgtitle,dims)...

2 days ago | 0

Quiver plot - how to use in this case?

Try the following: quiver(lat(1:5:end, 1:10:end),lon(1:5:end, 1:10:end),u(1:5:end, 1:10:end),v(1:5:end, 1:10:end));

2 days ago | 0

| accepted

Line plot for irregular timeseries data

a = readtable("book.xlsx"); idx = find(diff(a.date) > 1.2/24); % find the location of large time gap a.Nnuc(idx+1) = nan; ...

3 days ago | 0

| accepted

mean first 10 lines and next 10 line till finish array

a = rand(210338, 3); nrows = size(a, 1) n = 10; nseg = floor(nrows/n) c = squeeze(mean(reshape(a(1:n*nseg,:), n, nseg, 3)));...

3 days ago | 1

I am getting an error

f=@(x) exp(x)-x.^2+5*x; x=1:0.1:10; y=f(x); d=gradient(y, x); plot(x,d,'o')

3 days ago | 0

I have a problem with indexing in nested for loop.

for columns=1:size(femur_6d, 2) % number of columns for rows=1:size(femur_6d, 1) % number of rows

3 days ago | 1

Smaller values not seen in bar graph

X=[5 4 3]; Y=[1 7 8]; bar([X; Y]') figure bar(X) hold on bar(Y, 'FaceAlpha', .5); % transparency figure XMin = min(X, ...

3 days ago | 0

| accepted

How to Split fisher iris data into 60% training and 40% Testing

load fisheriris n = size(meas, 1); %hpartition = cvpartition(n, 'holdout', 0.4); % 40% for test hpartition = cvpartition(spe...

3 days ago | 0

Output regression tree as text

view(TreeDomain) will not return result to a variable. You can use "diary" function to save the result to a file: diaray tree_...

3 days ago | 1

csv data to fft in matlab

x = readmatrix("1_20mhz.csv"); n = size(x, 1); fs = 1/diff(x(1:2)) % sampling frequency y = fft(x(:,2)); f = (0:n-1)...

4 days ago | 1

| accepted

"Check for incorrect argument data type or missing argument in call to function 'X'. Error in sum=sum+A(j,h)*X(h)

output= ('Gaussian Elimination Method') % A=input ('Enter your coefficient Matrix') % b=input ('Enter your space vector') A =...

4 days ago | 0

| accepted

Using MATLAB solve this

% For matrix A; (Try it out yourself with matric B) A=[1/2 1/3; 1/4 1/5]; Ak = A; for k=2:20 Ak = Ak*A end

4 days ago | 0

Using MATLAB command can anyone solve this questio

% Some random input A = rand(2, 2) b = rand(2,1) % Solution x = (A*A)\b % To veryfy that: A*A*x = b A*A*x

4 days ago | 0

Integration of a function

Check below documentation: https://www.mathworks.com/help/symbolic/sym.int.html

5 days ago | 0

Fading colors in contourf

%Processing input Data = importdata('NH3.txt').data; Speed = importdata('Speed.txt').data; yy = unique(Data(:,2),'sorted'); ...

5 days ago | 0

| accepted

How do I create a 2D lookup table from efficiency map?

% Combine all the points for red and green curves to form the three vectors % speed, torque, efficiency. Then use the scattere...

5 days ago | 0

Plot time-series data of various column

% Read in data %k = xlsread('ACTUAL DATA_WIND SPEED.csv'); k = readmatrix('plot_try1.csv'); k(1, :) = []; % remove the heade...

7 days ago | 0

| accepted

Function won't display output in command window

You have to save the function as "funfactorial.m" first (not Untitled.m).

7 days ago | 0

| accepted

matrix error, long answer

Becasue the range of data is too big, the displayed result using the default format may make the smaller value to be 0. Run the...

7 days ago | 0

I cannot figure out how to get my data to plot on a simple line graph.

data = readmatrix('Copy of Pop Up.csv'); x = data(:, 1); y = data(:, 3); plot(x, y); % plot('Year','Num_corals') ...

7 days ago | 0