Answered
I want to display result in different names.
Read about fprintf. function[result] = Geometric_cal(var1,var2,indicator) % indicator = 1 is for Area of a Rectangle % indic...

5 years ago | 1

Answered
how to store values in Matrix based on the output of some iteration
iwant = zeros(count,1) ; for i = 1:count iwant(i) = randi(5) ; end To get the occurences read about unique.

5 years ago | 0

Answered
How to interpolate 2D
Read about interp1. If you are not able to get it attach your data.

5 years ago | 2

Answered
How to plot imagesc plotting over apianus mapprojection?
Try this toolbox: https://www.eoas.ubc.ca/~rich/map.html

5 years ago | 0

| accepted

Answered
showing error in simp, too many ouput arguments
You are not taking any output from the function in the code. And I suspect you are trying to call the function with an output, s...

5 years ago | 0

Answered
How to Matching matrix size (add or take away a value)
There is no error... If you are finding the difference, have a look on gradient.

5 years ago | 0

Answered
Read, process and write image dataset
infolder = '' % give the path of the folder where your images are present outfolder = '' % give the path of the folder whe...

5 years ago | 0

| accepted

Answered
how to get the position of a line in from a 2D matrix data.
If you have grid data X, Y,Z and you want to get the values at the points (x,y), you can use interp2. zi = interp2(X,Y,Z,x,y) ...

5 years ago | 0

Answered
How do I gapfill a vector only if gaps (NaNs) are 10 elements or less?
You can use interp1. Also have a look on fillmissing. x=[1,2,3,5,7,9,10,9, NaN,NaN,5,3,2,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,N...

5 years ago | 1

Answered
Removing redundant rows where not every row has the same number of elements
str = ["HIST1H2BC" "K13" "HIST1H2BC" "K13;K16" "HIST1H2BC" "K16" "HIST1H2BH" "K13" "HIST1H2BH" "K13;K16" "HIST1H2BH" "K16" ...

5 years ago | 0

Answered
Alternative function to scatteredInterpolant
Have a look on griddata.

5 years ago | 0

| accepted

Answered
delete elements of a vector wich are not consecutive
MAke your indices.....and then extract.... Hint: Your indices are in Arithmetic Progression.

5 years ago | 0

Answered
Mutual Information between continuous random variables
https://in.mathworks.com/matlabcentral/fileexchange/28694-mutual-information https://in.mathworks.com/matlabcentral/fileexchan...

5 years ago | 1

Answered
Change the value of independent variables to solve the dependent variable equation
x=0:0.5:4*pi; y=sin(x)+cos(x); xi = x(2)*rand ; yi = interp1(x,y,xi) ; plot(x,y,'r',xi,yi,'*b')

5 years ago | 0

Answered
I have a array of 61 number, i want to take mean of 1st and 17th number, then 2nd and 18th number and then want to put this mean values in a array?
A = rand(1,61) ; idx = [(1:46)' (16:61)'] ; % get indices iwant = mean(A(idx),2)

5 years ago | 0

Answered
How to make Cell array ?
iwant = [A B] But why?

5 years ago | 0

Answered
I am getting the error , Unable to perform assignment because the indices on the left side are not compatible with the size of the right side trying to compute the bisection m
You are trying to save more number of elements than the matrix is initilaized. Your LHS is a scalar and RHS is a vector, so erro...

5 years ago | 0

| accepted

Answered
Plotting 3D graph with 3 different set of coordinates
When you are plotting single point, you need to use marker. %Node 1 x1=-419;y1=-341;z1=30; z2=15; z3=0; hold on plot3(x1,...

5 years ago | 0

| accepted

Answered
defining matrix for a loop
txtFiles = dir('*.txt') ; N = length(txtFiles) ; PSDsheet = cell( N,1); .......................... ..........................

5 years ago | 0

| accepted

Answered
Error using trainNetwork - invalid training data
x = readtable('XTrain.csv'); y = readtable('YTrain.csv'); XTrain = table2array(x); YTrain = table2array(y); XTrain = num2c...

5 years ago | 2

| accepted

Answered
use the result of the fit function as a legend in a plot
load census; f=fit(cdate,pop,'poly2') ; h = plot(f,cdate,pop) ; legendinfo = legend(h) ; f legendinfo.String{2} = formula(f...

5 years ago | 0

Answered
How I can display this format to another format in these pictures ?
May be you are using syms. To simolify the numbers use Vpa. syms i j k F = 500*29^(1/2)*(2*i-4*j+3*k)/29 ; F = vpa(F,8)

5 years ago | 0

| accepted

Answered
Meaning of Epoch in Neural Network
An epoch is defined as the number of times an algorithm visits the data set .In other words, epoch is one backward and one forwa...

5 years ago | 0

Answered
am I having an matrix dimension because the name of the output ('III')?
Read abot strcmp, use strcmp(deficiency,'OK') instead of deficiency == 'OK'

5 years ago | 0

| accepted

Answered
Left and right sides have a different number of elements
The first loop can be removed and the loop should run til 1200 not 12000. Check the code below: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

5 years ago | 0

| accepted

Answered
How to plot data?
T = readtable(filename) ; % your file where data is present x = (1:24)' ; plot(x,T.(2),'r',x,T.(3),'b')

5 years ago | 0

| accepted

Answered
Create line between plot points
You would have plotted them using plot(x,y,'*r') So use: plot(x,y,'*r') hold on plot(x,y,'b') You can speecify your requi...

5 years ago | 0

Answered
How to test to see if a user input is not a number?
y = input('Input a number: ','s') ; if isnan(str2double(y)) disp('The entry is not a number') end

5 years ago | 1

Answered
How to extract satellite measured chlorophyll-a (chl-a) in MATLAB
Let lon,lat be your grid coordinates of the nc file. [X,Y] = meshgrid(lon,lat) ; xi = linspace(30,100) ; yi = linspace(0,30...

5 years ago | 2

| accepted

Load more