Answered
i need code for flower recognition
An example with which you can learn and extend to your case: https://in.mathworks.com/help/deeplearning/examples/create-simple-d...

8 years ago | 0

Answered
How can I delete columns when value is grater than 65 but lower than 20?
Let v be vector v(v>65) = [] ; v(v<20) = [] ;

8 years ago | 0

| accepted

Answered
creating a new array from a preexisting array
May be your are looking for this: a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] b = zeros(1,length(a)/2) ; for i = 1:length...

8 years ago | 0

| accepted

Answered
find element inside cell
S = cell([],1) ; A=[1,2,3,4]; B=[5,6,7,8,9,10,11]; C=[12,13,14]; D=[14,15,16,17,18,19]; F=[20,21,22,23,24,25,26,27]; mes=...

8 years ago | 0

| accepted

Answered
Plotting a circle always around a moving point
x = linspace(0,2*pi) ; y = cos(x) ; R = 0.1 ; for i = 1:length(x) plot(x(1:i),y(1:i)) axis([0 6 -2 2]) ...

8 years ago | 0

| accepted

Answered
Split vector every time data changes from 2 to 1
A = [1 1 1 1 2 2 2 1 1 2 2 1 1 1 2 2 1 1 2 2] ; idx = find(diff(A)==-1) ; idx = [0 ; idx ;length(A)] ; N...

8 years ago | 0

Answered
Split vector A into smaller vectors based on vector B
A = [1.2 1 1.3 1 1.4 1 1.5 2 1.6 2 1.7 ...

8 years ago | 0

| accepted

Answered
Given a set of numers how many of them should I use for an specific result?
x = [ 3 3 3 3 3 3 3 3 3 3 -4 -4] ; % 3*m-n*4 = 22 ; n = (1:100)' ; m = zeros(100,1) ; for i = 1:length(n) m(i) = (...

8 years ago | 1

Answered
Volume defined by vertices to stl file to mesh
t = DT.ConnectivityList ; % connectivity p = DT.Points ; % points

8 years ago | 0

Answered
How do I extract a substring in a cell array of strings?
[num,txt,raw] = xlsread(myfile) ; C4 = txt(:,4) ; idx = contains(C4,'DEB') Note that for better help, you should attach your...

8 years ago | 1

| accepted

Answered
Plot ellipsoids with an azimuth angle
YOu may rotate the ellipse at desired angle using rotation matrix. xCenter = 12.5; yCenter = 10; xRadius = 2.5; yRadius = 8...

8 years ago | 0

| accepted

Answered
How to connect non-continuous boundary and fill the object in binary image
An vague attempt....it can be further refined or a more legant solution would be possible. I = imread('m.png') ; I1 = r...

8 years ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 10)
YOu should not run loop i from 1 to 10. All your arrays are size 2*10 and you are using n+1 in the code....so for i = 10, the in...

8 years ago | 1

Answered
how to simply add two degrees together in dms format in matlab?
Read about dms2degrees d = dms2degrees([80, 30, 44]) + dms2degrees([10, 32, 10])

8 years ago | 1

| accepted

Answered
Finding the maximum point of my plot
Read about function max. It gives you the maximum value and its index also.

8 years ago | 0

Answered
combine two images using masking
Read both the images See to it hat they are of same dimensions, if not get them to same size using imresize. Get the indices ...

8 years ago | 0

Answered
Error using plot A numeric or double convertible argument is expected
YOu need to convert your sym varaible to double to plot. Read about double.

8 years ago | 0

Answered
how to use a for loop to find all row ?!
I = imread('crack_crop.jpeg') ; I = rgb2gray(I) ; [y,x] = find(I==0) ; imshow(I) hold on plot(x,y,'.r') %% GEt bounding ...

8 years ago | 0

| accepted

Answered
No Arrows showing in plot When using quiver
As the grid starts from 0 and you have used this zero in the reciprocal to get (u,v) you will get inf in the u,v.; quiver uses m...

8 years ago | 0

| accepted

Answered
How to get different color with respect to an figure.
YOu should use the predefined colors to do that. color = rand(6,3) ; x = 1:6 ; y = rand(size(x)) ; figure(1) hold on fo...

8 years ago | 0

| accepted

Answered
I have been trying to conduct a quiz on an event in our college and i want to do it on matlab. I was plannig on doing this way:
YOu may proceed something like below: [X,Y] = meshgrid(1:10,1:10) ; hold on plot(X,Y,'r') ; plot(X',Y','r') ; fpri...

8 years ago | 0

Answered
How do I get the x vector from a fifth degree function with a given y vector ?
P = [-0.1304 0.2909 -0.2454 0.042 0.0693 1.3332] ; y = [1.3579 1.3571 1.3571 1.3567 1.3568 1.3565 1.357 1.3571 1.3571 1.353...

8 years ago | 0

Answered
Plot two variables only when a third one has certain value
plot(Time(FC==1),Temperature(FC==1))

8 years ago | 0

| accepted

Answered
Obtaining coordinate values within circular ROI
Check this demo example: I = imread('cameraman.tif') ; [ny,nx] = size(I) ; C = input('Enter center of circle C(x,y), sho...

8 years ago | 0

Answered
Crossed lines detection function
Get the intersection point between two lines...if they intersect, they cross....if not the don't cross....use this file exchange...

8 years ago | 1

Answered
Trouble with vector length
To plot the xdata and ydata should be same. In your case t and P are of different size. Get them to same size. %Variable key ...

8 years ago | 0

| accepted

Answered
how to load .mat file as image
load test.mat ; n = length(result) ; for i = 1:n imshow(result{i}) ; end Read about Cell in matlab.

8 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
YOu are giving negative or zero index to extract a element from matrix. A = rand(10) ; A(1,1) % no error A(10) % no...

8 years ago | 0

| accepted

Answered
Error with double integration
YOu need not to use syms ae = 0.5; be = 0.6; R = 0.01; E = (2.1*10.^11)./(1-0.3); A = pi*E*R; k = (6*1.3)./(7+6*0.3); m...

8 years ago | 0

Load more