Write a function with input .xls file to read
To load the excel data into matlab use readtable To compare values you can use isequal, ==, etc.

3 dagen ago | 0

| accepted

How can I convert surface plot into STL format file?
[X,Y,Z] = peaks(100) ; surf2stl('test.stl',X,Y,Z)

4 dagen ago | 0

How can I represent points and lines in 3 dimensions?
It is in 3D, you need to change the view. view(3)

4 dagen ago | 1

How to visualize a table in a color dot plot?
Let A be your matrix. [m,n] = size(A) ; [X,Y] = meshgrid(1:m,1:n) ; figure hold on plot(X(A<0),Y(A<0),'.b') plot(X(A>...

7 dagen ago | 2

| accepted

How to convert a Year Month and Date to Day Number?
Load the data from csv file into MATLAB using readtable You can convert the dates into date numbers using datenum

7 dagen ago | 0

| accepted

How to get column values using indexes
LEt A be your matrix. C5 = A(:,5); % 5th column M1 = A(C5==1,1:4) ; M2 = A(C5==2,1:4) ;

7 dagen ago | 0

How to plug in and solve for algebraic equation?
t = linspace(0,1) ; z = 15*(1+(4.1*0.064)/1000*(15/150)^(2/3)*t.^(5/3)).^(-3/2) ; plot(t,z)

7 dagen ago | 0

How can I implement KNN ? I want to have user input and data from excel sheet compared.
Say it loudly today that your function is knnsearch. weight = [971; 1401; 105; 210] ; age = [15; 30 ; 25 ; 67] ; data = t...

7 dagen ago | 0

| accepted

How can I detect the centroid or center of segmentation image ?

7 dagen ago | 0

| accepted

creating a three-dimensional array from three array with different size
a = rand(1,8) ; b = rand(1,7) ; c = rand(1,6) ; iwant = cell(3,1) ; iwant{1} = a ; iwant{2} = b ; iwant{3} = c ; iwa...

8 dagen ago | 1

| accepted

I want to loop for files in workspace
s = whos ; for i = 1:length(s) s(i).size end

8 dagen ago | 0

How to solve this error?
The error is clear. It seems you have an array of size 1x17 and you are trying to extract elements more than present in it. % ...

8 dagen ago | 0

| accepted

Vectors must be the same length
p1=plot (Distanz(i,:) , [Z(i,:) ; HQextrem(i,:); HQ5000(i,:); HQ10000(i,:)]);

8 dagen ago | 0

| accepted

How can i automatically Fill Legend using Cluster Number (K-means)
%Read Dataset %Find the Optimal Clusters for this dataset eva = evalclusters(dataset,'kmeans','silhouette','KList',[1:10]) K=...

8 dagen ago | 0

how to make figure that shown below
load('aaaa.mat') ; time = aaaa(:,1) ; ttt=(time/60); % Set the time in minutes for figures % Rescale the time to look ...

8 dagen ago | 0

| accepted

How do I print a given martix in a spiral matrix scan order but the start from any element as user defined?

8 dagen ago | 0

'equal' operator does not work on tables
You need not to un a loop. You can get it with one go using ==. Let T1, T2 be your tables, and you want to comapare 9 the column...

9 dagen ago | 0

Extract 2D matrix from 3D matrix

9 dagen ago | 0

Asking the user to enter the extension of the files and load all of them in the current directory
files = dir('*.txt') ; filenames = {files.name}

9 dagen ago | 0

Maths Solution to a equation
syms n eqn = cos(0.8)^n == sqrt(2) ; s = solve(eqn,n) vpa(s)

10 dagen ago | 0

| accepted

ODE45 needs column vector from anonymous function
options = odeset('RelTol',1e-4,'AbsTol',1e-2); yprime = @(x,y) ((-x.*y)/(sqrt(6-(y.^2)))); Y = [0.5 1.0 1.5 2.0]; tspan = [...

10 dagen ago | 0

I want to store multiple entries in one location in matrix
You can save them into a cell array. Read about cell. % Dummy data demo A = cell(2,3) ; for i = 1:2 for j = 1:3 ...

10 dagen ago | 0

I want to create a 2D scatter plot with loops
[X,Y] = meshgrid(0:40,0:50) ; scatter(X(:),Y(:),[],Y(:)) scatter(X(:),Y(:),[],X(:))

10 dagen ago | 0

How to get only random samples which are in allowed range and reject the rest?
idx = [0 0 0] ; while nnz(idx)~=3 u = rand(3,1)-0.5; y = - 10 * sign(u).* log(1- 2* abs(u)); idx = y ...

10 dagen ago | 0

| accepted

Adding every loop a matrix from the right side to a matrix
A = [1,2;3,4] ; B = repmat(A,1,2)

10 dagen ago | 0

| accepted

Accessing data within a structure
iwant = angles.LkneeAngles

10 dagen ago | 1

| accepted

An error in my code
syms x f = atan(x) ; t = taylor(f,x,0,'order',5)

10 dagen ago | 0

Strings from Loop to array
Parameter1 = 5 ; Parameter2 = 5 ; Name = cell(Parameter1,Parameter2) ; for i=1:Parameter1 for j=1:Parameter2 ...

11 dagen ago | 0

| accepted

How to crop the ROI of a set of dicom images?
Read about imcrop, imcrop3. You can achieve it by providing the vertices of ROI.

11 dagen ago | 0

| accepted