Answered
Is there a way to code Matlab to show complete mathematical working of a solution?
Refer here: https://blogs.mathworks.com/pick/2009/02/06/plotaxisatorigin/ YOu shift the origin and change the tick labels...

8 years ago | 0

| accepted

Answered
Duplicate every element of a matrix to NxN elements
A = [1 2 3 4 ] ; [nx,ny] = size(A) ; B = cell(nx,ny) ; for i = 1:nx for j = 1:ny B{i,j} = repelem...

8 years ago | 0

Answered
Plot 3 with data set and one equation
A= [ 0.7835 0.118 0.7939 0.115 0.8043 0.1121 0.8148 0.1093 0.8254 0.1066 0.8360 0.104 ...

8 years ago | 0

Answered
How do I generate missing entries using random binary masks on an Image?
Try this: https://in.mathworks.com/matlabcentral/fileexchange/4551-inpaint_nans

8 years ago | 0

| accepted

Answered
Averaging every element with nearby elements
Read about knnsearch. With this you can get your desired number of nearest neighbors indices.....with the indices you can get yo...

8 years ago | 0

Answered
create a matrix with numbers from vector
N = zeros(3,3,3) ; for i = 1:3 N(i,:,i) = 1 ; end M = reshape(N,3,[])

8 years ago | 0

Answered
How can I remove the region outside of the vector data when I combine the vector and raster data on the same map?
You must be having the boundary coordinates in hand........use inpolygon and get the points lying inside the closed region. Read...

8 years ago | 1

| accepted

Answered
How do I form a product of two arrays and add the numerical value of the integral in the plot?
xData = linspace(0,4*pi,1024); yDataA = cos(xData); yDataB = cos(xData); p = yDataA.*yDataB ; plot(xData,p)

8 years ago | 0

| accepted

Answered
Extracting specific portions of acceleromeetr signal
load('accx.mat') ; tol = 0.1 ; % can be varied idx = abs(accx)>tol ; plot(accx(idx))

8 years ago | 1

| accepted

Answered
2x/5-x/6=7/10
YOu can do simple hand calculation......or else you may use syms and solve syms x eqn=10*x/5-2*x/6-7/10==0 ; sol = solve(e...

8 years ago | 0

Answered
How can I rearrange data in txt file to Matlab?
fid = fopen('data.txt','rt') ; S = textscan(fid,'%s','delimiter','\n') ; S = S{1} ; fclose(fid) ; idx = contains(S,'7c:95...

8 years ago | 0

Answered
Want to plot a table that has both text and numbers into a pie chart
T = [{'Alabama' } {[ 227433]} {'Alaska' } {[ 12107]} {'Arizona' ...

8 years ago | 1

| accepted

Answered
Matrix Operations using MATLAB
Read about eig https://in.mathworks.com/help/matlab/ref/eig.html A = magic(6) ; [v,d] = eig(A) ;

8 years ago | 0

| accepted

Answered
vectore with two colors
A = rand(3,1) ; B = rand(3,1) ; x1 = 1:length(A) ; x2 = (1:length(B))+length(A) ; figure hold on stem(x1,A,'r') stem(x2...

8 years ago | 0

| accepted

Answered
How to remove data on left hand region of the image?
Use pcolor. Plot the color bar......See the limits and values.......which ever values you don't want replace them with NaN or re...

8 years ago | 0

| accepted

Answered
Plotting elements of a matrix in one vertical line for every iteration
YOu can specify a random colour using rand(1,3)

8 years ago | 0

Answered
How to check if there is any field in structure?
isempty(fieldnames(L1))

8 years ago | 7

| accepted

Answered
how to write in the following script
syms x f = sin(x)+x^3-exp(x) s = int(f,[0 3]) s1 = double(s)

8 years ago | 0

| accepted

Answered
could anyone help me how to solve the error for the following code
ffite is defined inside while loop.......your code is not entering inside the while loop......so ffite is not defined......you n...

8 years ago | 0

Answered
Can we covert jpg/png graph images to matlab graph image and get x and y axis datas from it?(digitise the graph)
Have a look here: https://in.mathworks.com/matlabcentral/fileexchange/7173-grabit

8 years ago | 0

Answered
Appending tables from excel with different column order
Read about join https://in.mathworks.com/help/matlab/ref/table.join.html

8 years ago | 0

Answered
Save different values of the same table from a loop
T2 = cell(length(centroid_clust),1) for k=1:length(centroid_clust) separate_areas(1,k)=[area_clust(k).Area]; c=[c...

8 years ago | 0

| accepted

Answered
How do I use MATLAB to delete specific lines/text from a .txt file
% Read the file data fid = fopen('chem679.inp.txt','rt') ; S = textscan(fid,'%s','delimiter','\n') ; S = S{1} ; fclose(fid)...

8 years ago | 3

| accepted

Answered
How to fit data points to the best rectangle
I = imread(yourimage) ; I = rgb2gray(I) ; [y,x] = find(I==1) ; x0 = min(x) ; y0 = min(y) ; x1 = max(x) ; y1 = max(y) ; ...

8 years ago | 0

Answered
How to detect the object in my picture that be horizontal vertical or spot ?
I = imread('spot.jpeg') ; I = rgb2gray(I) ; [y,x] = find(I==0) ; %% Remove outliers idx = abs(x-mean(x))>3*nanstd(x) ; i...

8 years ago | 0

| accepted

Answered
HOW TO FIX Index exceeds matrix dimensions in VMD
The error clearly says..you are trying to extract data from an array more than existing. Example: A = rand(5) ; iwant = A(3,...

8 years ago | 0

Answered
How graph using for loop
Read about kmeans x=-100+(100+100)*rand(1500,1); %Un vector de 1500 renglones x 1 fila, que muestra nuemros random desde -1...

8 years ago | 1

| accepted

Answered
how to input a derivative in Matlab
syms t R(t) b eqn = diff(R,t) == -b*R ; sol = dsolve(eqn)

8 years ago | 0

| accepted

Answered
how can i give multiple images from folder??
imagefiles = dir('*.jpg') ; % you are in the folder of images N = length(imagefiles) ; % toal number of images % loop for...

8 years ago | 0

Answered
3D plot in different planes
This can be very much done with surf and pcolor..also have a look on slice. https://in.mathworks.com/help/matlab/ref/slice.html...

8 years ago | 0

Load more