Answered
How to plot a function of two variable
x1 = 0:0.01:1 ; % use your limits x2 = 0:0.01:1 ; % use your limits [x1,x2] = meshgrid(x1,x2) ; y=2*x1.^2 + 2*x2.^2 +10*...

8 years ago | 0

| accepted

Answered
adjust the two images
Read the image using imread, to the output add any number, it will increase the brightness. There are other methods to do this, ...

8 years ago | 0

Answered
how to find mean the value gray level 3 conditions
Type error: Matrix2(IGray_crop<20) Change m to M.

8 years ago | 0

Answered
could anyone help me to measure the distance between base station and users with respect to the following code.
user=6; d1 = zeros(user,1) ; d2 = zeros(user,1) ; for t = 1:length(user) Xmax=1; Ymax=1; radius=2; xsd=on...

8 years ago | 0

Answered
Generating random numbers using for loop
N = 10 ; iwant = zeros(N,1) ; for n=1:2; iwant(n)=rand ; end iwant OR N = 10 ; iwant = rand(N,1) ; Read about r...

8 years ago | 2

Answered
How to obtain concatenated polynomials using MATLAB?
function y = eg10(N) p = [ 1 1] syms x q = poly2sym(p,x) y = cell(N,1) ; a = cell(N,1) ; b = cell(N,1) ; c = cell(N,1) ; ...

8 years ago | 2

| accepted

Answered
How to display all the bounding boxes in the image?
There is no variable named: blobMeasurements I think this variable is Iprops in your case......repalce the variable blobMe...

8 years ago | 0

Answered
minimum of the function f(x)=cos(x2)
Read about min function.

8 years ago | 0

Answered
How to avoid intersection of node in WSN node deployment.
Get the distance between the picked points and other points, you may use knnsearch or pdist, pdist2......if the distance is zero...

8 years ago | 3

| accepted

Answered
how to fix Attempt to grow array along ambiguous dimension-Error?
Check the sizes of perim and redChan . They are perim 220x684 150480 logical redChan ...

8 years ago | 1

Answered
making some change inside of the legend box
YOu have to increase the marker sizes while plotting the data. A = rand(10,3) ; plot(A,'.','MarkerSize',10) lgd = legend...

8 years ago | 1

Answered
i need help with this message undefined function or variable matlab even the vqriqble excite
function [teta]=T(X,n,m) p1=1; p2=2; t=1; for i=2:n for j=2:m k=1; vect=zeros(4,1); for h=0...

8 years ago | 1

Answered
4 Day temperature comparison, including current day
thedates = (datetime('today')-days(3):datetime('today'))'

8 years ago | 0

Answered
Please help me to position the starting and ending point of data
Frames= 'M0400FEC9F93DF7EA02AFF9F308540209041B0746FA8B0351F671FAD0FC92F69706E9FCAC08EA05AB00430745F6AEFEA4F8F3F8100189F8CA087C00...

8 years ago | 1

Answered
How to create a grid from data in a row?
A = rand(1000) ; col = 24:419 ; % your columns row = 7 ; % your row B = reshape(A(row,col),18,22) ; pcolor(B) ...

8 years ago | 1

| accepted

Answered
Repeated values in a column of a matrix
Read about unique. This will give you want you want.

8 years ago | 0

| accepted

Answered
how to plot the graph for the following result
figure hold on for i = 1:100 global_fitness = rand ; plot(i,global_fitness,'*r') end Or, save all the values of a ...

8 years ago | 0

| accepted

Answered
How to show results for curves in a graph?
A = rand(3,10) ; M = mean(A,2) ; plot(A') str = cell(3,1) ; for i = 1:3 str{i} = strcat('mean=',num2str(A(i))) ; ...

8 years ago | 0

| accepted

Answered
Plotting weather graphs so subsequent years are superimposed rather than sequential
T = readtable('Matlab graph question.xlsx') ; theyears = year(T.(1)) ; [c,ia,ib] = unique(theyears) ; c(isnan(c)) = [] ; % ...

8 years ago | 1

Answered
Single non-linear x axis in figure
Read about xlim. Read about axis. Also you can pick your required data using logicals. Let t,y be your data. idx = t<5 ; ...

8 years ago | 1

Answered
How to shift one of the plots in a figure to the right.
You may try like below: t = linspace(0,2*pi,500) ; y1 = sin(t) ; y2 = rand*sin(t(end-24:end)) ; plot(t,y1) hold on ...

8 years ago | 0

| accepted

Answered
Summing parts of a column
YOu have multiple ways to do this..... Create the time stamps you want...find the respective indices using ismemebr and do th...

8 years ago | 1

Answered
To Save contourf sequentially in loop according to input filename
Note that im will be matrix. YOu cannot save like that. Try this: fil=dir('*.h5'); for K=1:numel(fil) g=fil(K).name;...

8 years ago | 2

| accepted

Answered
Determining length of values in cell
If A is your data...you can use logicals like ==, >, < etc..to find the locations. For example, if you want where 4 is present. ...

8 years ago | 1

| accepted

Answered
Calling data with using rand command
A=[1 2 2 3 3 5] ; corners = 1:size(A,1) ; randompick = corners(randi(numel(corners))) disp(randompick) idx = randomp...

8 years ago | 0

| accepted

Answered
How to save an image in a folder automatically?
Go the respective folder and check the permissions......you need to give permissions to the folder to write the data into the fo...

8 years ago | 0

Answered
making a time vector
a) Create a vector (t) that contains time from 0 seconds to 3 seconds, with a step-size of 0.01 seconds. Read about linspace. ...

8 years ago | 1

Answered
Count number of sheets in excel file
[status,sheets] = xlsfinfo(filename)

8 years ago | 4

Answered
Remove points from a mesh with a cutting plane
Refer here: https://in.mathworks.com/matlabcentral/answers/75952-position-of-points-relative-to-a-plane

8 years ago | 0

| accepted

Answered
append many .csv files together in a new csv file .
Read about readtable...you can read the data into tables...and append them.

8 years ago | 0

| accepted

Load more