Answered
x(i+1)=y(i)-((f(y(i))/d(y(i)))); // error in this line..
Refer here: https://in.mathworks.com/matlabcentral/fileexchange/68885-the-newton-raphson-method

7 years ago | 0

Answered
How to export the result as a picture
close all; close all hidden W = [.41 .99 .51 .32 .15 .45 .38 .32 .36 .29 .21]; DG = sparse([6 1 2 2 3 4 4 5 5 6 1],[2 6 3 5 4...

7 years ago | 0

| accepted

Answered
Split one column data into 4 arrays
A=[1 1 1 2 2 2 3 3 4 4 1 1 2 2 3 3 4 4 1 1 1] ; C = unique(A) ; iwant = cell(length(C),1) ; for i = 1...

7 years ago | 0

Answered
i want to create bounding boxes for the intersection part of vertical and horizontal profile but i didn't get it how can i do it help me here is the code iam using
This can be useful, check https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=func...

7 years ago | 0

| accepted

Answered
averaging data set in horizontal as well as vertical direction
A = rand(1024,1024) ; out = blockproc(A,[2 2],@(x)mean(x.data(:))); Refer more here: https://in.mathworks.com/matlabcentral...

7 years ago | 0

| accepted

Answered
compare 2 vectors and classify them
C = A ; C(A ==1 & B == 1) = 1 ; C(A ==1 & B == 2) = 2 ; C(A ==2 & B == 1) = 3 ; C(A ==2 & B == 2) = 4 ;

7 years ago | 0

Answered
How to conduct prediction using self organizing map (SOM)?
Refer this toolbox for SOM: http://www.cis.hut.fi/projects/somtoolbox/documentation/index.shtml. I have seen few refernces used ...

7 years ago | 0

Answered
Subscripted assignment dimension mismatch need help
C=imread('D29.gif'); x1=imresize(C,0.4); x2=im2double(x1); [m,n,k]=size(x1) % and m=n with 1 channel k=1 ImageSize=m*n; Blo...

7 years ago | 0

Answered
Problem with the title of a graph
title('The graph of (x^2-2)')

7 years ago | 1

| accepted

Answered
How can i color into circle element when i plot the curve?
th = linspace(0,2*pi) ; x = cos(th) ; y = sin(th) ; patch(x,y,'r')

7 years ago | 0

Answered
Signal plot - Can't figure out error
Eo2a is a function handle...you have to input t and get output. You should run something like below. REthink on your code. t1=...

7 years ago | 0

Answered
Is there any instruction can ignore the "0" value and find the minimum value of a matrix ?
A=[0 1 2 3] [val,idx] = sort(A) ; iwant = val(2) A(A==0) = NaN min(A)

7 years ago | 0

| accepted

Answered
Generating cicle instances around circumference
th = linspace(0,2*pi)' ; R = 1. ; % main circle radius C = [0. 0.] ; % main circle center x1 = C(1)+R*cos(th) ; y1 = C(...

7 years ago | 0

| accepted

Answered
Plot linear regression without data points
x = rand(20,1) ; y = rand(20,1) ; mdl = fitlm(x,y); h = plot(mdl) ; delete(h(1))

7 years ago | 0

| accepted

Answered
How to find /plot a parallel cordinate at a fixed distace from a lat long cordinate point in matlab
x = rand(2,1) ; y = rand(2,1) ; % fit a line p = polyfit(x,y,1) ; xi = linspace(x(1),x(2)) ; yi = polyval(p,xi) ; % ...

7 years ago | 0

| accepted

Answered
Save .tif stack to .tif image sequence.
Let I be your stack of size (512x512x1000). for i = 1:1000 filename = ['EGFRwt_a4900_p65_e50ms_01_',sprintf('%04d',i),...

7 years ago | 0

| accepted

Answered
Mathieu Function
Refer: https://in.mathworks.com/matlabcentral/fileexchange/35355-stability-chart https://in.mathworks.com/matlabcen...

7 years ago | 1

| accepted

Answered
How can delete matrix randomly?
Let y be your matrix: [nx,ny] = size(y) ; idx = randsample(1:nx,3) ; y(idx,:) = [] Note that, yopu are deleting rows..no...

7 years ago | 0

| accepted

Answered
Interseption of a sphere in a triangular meshed surface
Read about inpolygon. Draw your circle. Have (x,y) coordinates of circle in hand. Use inpolygon After knowing indices o...

7 years ago | 0

Answered
Insert an index in a for loop
A = zeros(2,2,10) ; for i = 1:10 A(:,:,i) = rand(2) ; end A(:,:,1) A(:,:,3) In your case follow: for i=1:size(A,1)...

7 years ago | 0

| accepted

Answered
How do I create a table of each iteration from my while loop?
v0=35.35; c=13.45; m=67.5; g=9.81; t=4; %vf=0; iteraton=0; iter = zeros([],1) ; Vf = zeros([],1) ; count = 0 ; whil...

7 years ago | 0

Answered
Stitch two surfaces along their edge in 3d
t1 = [ 13 17 4 19 18 17 11 6 2 15 9 6 4 10 13 15 13 10 ...

7 years ago | 0

| accepted

Answered
How to plot histogram of multiple images in a for loop and save them in different figures?
Wait for some time....if your images are huge..it will take some time to get plotted. srcFile = dir('./Registered_to_1_Metasta...

7 years ago | 0

| accepted

Answered
How to solve a series of equations using a loop in MATLAB?
s=cell(1,100); eqn = cell(1,100) ; syms l0 positive for i=1:100 eqn{i}= .0017777*(l0^.25)/(.05-l0) == i; s{i}...

7 years ago | 0

Answered
Matrix extraction from image
Refer here: https://in.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-mean-of-each-4-4-so-that-...

7 years ago | 0

| accepted

Answered
can anyone help me to fix the issue
B = A(1:3,1:3) ;

7 years ago | 0

| accepted

Answered
Find columns of a Matrix (n x m) that fit best to a Vector (n x 1)
Read about ismember.

7 years ago | 0

Answered
How can I generate a set containing all possible combinations?
Read about perms

7 years ago | 0

Answered
length of major axis of the patch
See this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/31126-2d-minimal-bounding-box. This functio...

7 years ago | 1

| accepted

Answered
Count number of points around points in a list
I feel the following functions will be help ful for you. Read about knnsearch, rangesearch.

7 years ago | 0

| accepted

Load more