Answered
auto split matrix with text and numbers into other matrices (up to n)
C = A(:,end) ; [c,ia,ib] = unique(C) ; N = length(c) ; iwant = cell(N,1) ; for i = 1:N iwant{i} = A(ib==i,:) ; end...

6 years ago | 0

Answered
How do I solve this problem? up and down?and at the same time the timeline gap
What you want is the intersection points of two curves given. Use the below function to get those points. https://in.mathworks...

6 years ago | 0

Answered
How can i solve an equation with vector(s) and if this can be done using conditional statement
Read about element by element operations in MATLAB. n=2.2; m=1.86; p=0.153; Qv=0.980; B=3.200; Rw=0.265; Rt=[4.05; 4.10; ...

6 years ago | 0

| accepted

Answered
How to convert solution of syms array to a normal array?
Read about double. syms x y a = 1 ; b = 2 ; eqn = a*x+b*y==0 ; sol = solve(eqn,x) ; % y = [1 2 3 4] ; iwant = dou...

6 years ago | 0

| accepted

Answered
Change the value of a matrix according to the indexes stored in another one.
Read about sub2ind Z =zeros(5,6) ; idx = [1 1; 2 5; 4 6] ; idx = sub2ind(size(Z),idx(:,1),idx(:,2)) ; Z(idx) = 5

6 years ago | 1

| accepted

Answered
Fitting data with different type regression
You have to split your data into two sets....Let (x,y) be your m*n data and you want to divide them at a value val. data1 = [...

6 years ago | 1

Answered
indexing in for loop
iwant = cellspikes(48:71)

6 years ago | 0

Answered
matlab a a graph plot
%wava tank problem clc; %clear workspace command window %input a=0.5; rho=1030; g=9.81; l=30; L=5.216; d=2; T=2; w=2*p...

6 years ago | 0

| accepted

Answered
Can someone help me with the floor command of matlab?
n = 930 ; N = 15 ; % this step 1:n/N:n is same as dn = n/N ; n1 = 1:dn:n

6 years ago | 1

| accepted

Answered
Find the closest data point between 2 files by comparing one 3D data point in a file to all 3D data points in another file
Read about knnsearch. This is your function.

6 years ago | 1

| accepted

Answered
How to sort a two column vector
Let A be your vector of two columns. [val,idx] = sort(A(:,1)) ; % sort the first column iwant = A(idx,:) % arr...

6 years ago | 0

Answered
remove obsevations with x=0
Let A be your 100*2 data. With first column as x and second column as y. idx = A(:,1)>0 ; % get logical indices of x which ...

6 years ago | 0

| accepted

Answered
Derivative of a function
There is function called gradient in MATLAB aswell.....read about it. https://in.mathworks.com/help/matlab/ref/gradient.html

6 years ago | 1

| accepted

Answered
my goal is to make the biggest common partition but says syntax error >>> if(y==0)
You forgot to close the fprintf brackets. a= input("1.tam sayi: "); b= input("2.tam sayi: "); fprintf(" \nEBOB(%d,%d)=%d\n" ...

6 years ago | 1

Answered
Change value of corresponding column depending on conditions
You cannot put NA, but you can replace that with NaN. Try this. A = [5 4 45 15 32 6] ; idx ...

6 years ago | 1

| accepted

Answered
Manual triangle wave generation
A = 1; f = 1; fs = 1000; t = 0 : 1/fs : 10; n = [300]; omega0 = 2*pi*f; K = 8*A/pi^2 ; N = 20 ; % can be changed ...

6 years ago | 0

Answered
How to merge text files vertically?
txtFiles = dir('*.txt') ; % get the text files in the present folder N = length(txtFiles) ; % Total number of text files...

6 years ago | 0

Answered
rotate the sphere around the circle of the torus
R=20; r=5; [a, b] = meshgrid(0:20/180*pi:2*pi); X=((R-r)+r*cos(a)).*cos(b); Y=((R-r)+r*cos(a)).*sin(b); Z=r.*sin(a); hsurf...

6 years ago | 0

Answered
The advantages and disadvantages of MATLAB
huumh......It is really tough question.......As a MATLAB addict, I dont see any disadvanatages so far else from it is being exp...

6 years ago | 2

| accepted

Answered
my problem e ^x= ∑n=0 ∞ * x ^n\ n ! but this program didn't work . it gives infinity error and I don't know how to use it. invalid range and called from errors
n = 20 ; % can be changed x = pi ; % value of x y = 0 ; % intilaize the required value for i = 0:n y = y+x^i/...

6 years ago | 1

| accepted

Answered
Find x for y=0 using interpolation
load ("Daten_Wurfparabel.mat") ; yi = 0 ; xi = interp1(y,x,0) ; [xi yi] plot(x,y,'b') hold on plot(xi,yi,'*r')

6 years ago | 0

| accepted

Answered
syntax error,my goal is to calculate the smallest common divisor with the entered numbers. but I can not do . it constantly gives syntax error. given by fprintf
In the first if condition you forgot to close the bracket, so the error. clc; clear all ; a=input ("1.tamsayi: "); b=input...

6 years ago | 1

| accepted

Answered
How to answer this question using matlab?
https://in.mathworks.com/matlabcentral/fileexchange/49996-2d-frame-analysishttps://in.mathworks.com/matlabcentral/fileexchange/4...

6 years ago | 0

Answered
Get maxima and minima over certain period
Raead about findpeaks and envelope.

6 years ago | 0

| accepted

Answered
Color filling between lines in figure
Use this https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function to get the i...

6 years ago | 0

Answered
why this is Index exceeds matrix dimensions?
Note this step: cos(2*pi(fc-fm)*t) There * is missing pi and (fc-fp) Change that one to cos(2*pi*(fc-fm)*t) Vc = 2 ; Vm ...

6 years ago | 0

Answered
Uniformize two discrete curves to measure minimal distance.
How about this? clc; clear all ; x1=[0;0.3756;1.5134;3.2905;5.4696;7.8739;10.4061;13.0115;15.6615;18.3430;21.0478;23.7702;26....

6 years ago | 0

| accepted

Answered
Digital image Processing : Saving cropped Image
Io=imread('FileName.ext') ; I1 = imcrop(lo) ; imwrite(I1,'CFileName.ext') ;

6 years ago | 0

| accepted

Answered
Compute object distance in Image
How about imdistline ? https://in.mathworks.com/help/images/ref/imdistline.html

6 years ago | 0

Answered
Arrays of unknown size as input
You need not to worry about the dimensions of input. You can do what you wanted without loop. Check the below code. [X,Y] = me...

6 years ago | 0

Load more