Question

Matlab source code constrained Multi-objective ACO/SA.

I am looking for Matlab code for particle swarm optimization or Ant colony optimization or Simulated annealing which can handle ...

2 years ago | 0 answers | 0

Question

Unable to plot implicit function in MATLAB 2016a

clc;clear all;close all syms b P phi0=asin(1.5/b); f = -(2*P*1.35/(1.5^2*1.1538*10^5))+... ((pi-2*...

2 years ago | 1 answer | 0

Question

How to solve the below equation.

P=30;A=1.73*10^-5;R=1.35; a=1.5; P*A*R/x^2=(pi/2)-(a/x)*sqrt(1-(a/x)^2)-asin(a/x) I tried to solve but I am not getting ...

2 years ago | 1 answer | 0

Question

How to copy rows of a matrix to convert it into single row??

Suppose I have got A=[1 2; 3 4; 5 6; 7 8] Now I want output as B=[1 2 3 4 5 6 7 8] How to do this? Thanx

3 years ago | 1 answer | 0

Question

How do I multiply vector elements in the following fashion???

Suppose I have A=[18 44 20 55] & B=[4 6] Now I want C=[18*4 44*4 20*6 55*6] i.e I want to multiply first element o...

3 years ago | 1 answer | 0

Question

How to evaluate two variable function...?

f=@(x1,x2) 2*x1^2+x2^2+2*x1*x2+x1-x2; x1=0; x2=1; X=[x1;x2]; How to evaluate function using vector X..? f(X) is no...

4 years ago | 1 answer | 0

Question

How to seperate real and Imagenery parts from equation???

% I have the following equation syms a b p=(a+1i*b)*3.142*tan((a+1i*b)*3.142)-1i*1.23*340*sqrt((a+1i*b)^2*3.142^2+(3.1...

4 years ago | 0 answers | 0

Question

How to separate imaginary and real parts from the equation.................Pleas help

I have the following equation(p) and I want to separate out real and imag parts syms a b p=(a+1i*b)*3.142*tan((a+1i*b)*3.1...

4 years ago | 1 answer | 0

Question

I want to convert my program in to a function......tried function but something is wrong....???

Here is my program. How to write its function?? Inputs and output are as indicated in program clc clear all close ...

4 years ago | 2 answers | 0

Question

Could you help me please??

Suppose I have a function f=inline('x^3+2'); x1=2; x2=-2; x3=4; Fmin=min(f(x1),f(x2),f(x3)) Now I want to find ...

4 years ago | 1 answer | 0

Question

How to do this one..??

Suppose I have three numbers 6 3 and 9 I want to assign x1=lowest number x3=highest number x2= remaining number ...

4 years ago | 1 answer | 0

Question

I have plotted two equations. How to get their intersection point?.......Thanks

ezplot('y-x^2+2.5*x=0'); ezplot('(x-5)^2+(y-3)^2=4'); I have plotted above two equations and I want the...

4 years ago | 1 answer | 0

Question

Which way is correct of defining function...I am getting two differnt surfaces if I specify same equation differently...?

f=(8.*x.^2)+(14.*y.^2)+(24.*x.*y)-(31.*y)+(25.*x) %--------1 f=(8*x^2)+(14*y^2)+(24*x*y)-(31*y)+(25*x) %---------...

4 years ago | 3 answers | 0

Question

How to plot surface in matlab..???

Please find the attached equation. I tried using meshgrid

4 years ago | 2 answers | 0

Question

Please help to rectify an error......(Error in while loop)

b=5; x1=0; x2=0.5; x3=1; dx=0.5; % Initial values syms x f=inline('(x^2)+(54/x)'); % Function while...

4 years ago | 1 answer | 0

Question

I want to write a small program...

Please help me to write program for following algorithm The algorithm for a program is as follows Inputs a=0;...

4 years ago | 1 answer | 1

Question

Location of maximum number in matrix??

%Suppose I have a matrix A=[2 3 4; 5 6 7; 8 9 0]; %I want to Find the location of maximum numb...

4 years ago | 2 answers | 0

Question

How to form a Single matrix from Multiple matrices by taking perticular element from each matrix.???

Suppose I have a loop for m=1:8; a=5+m; b=3*m; A=[a, b a*b; b, a+b, a-b; 2-a, 3+b a] end I will get 8 matrices,...

4 years ago | 1 answer | 0

Question

I want to create two different matrices from a single matrix.

suppose I have a column matrix u = [2.2717e-33; -5.4589e-33; 5.2283e-33; -2.4541e-32; 4.7101e-12; -8.286...

4 years ago | 1 answer | 0

Question

I want Seperate Matrices for different values of n . (Im new to Matlab)

suppose I have a matrix A=[1+n 3+n; 2 6+n]; and n=1:6; how to get 6 different matrices A1 A2 A3....A6??. I tried A(n...

4 years ago | 2 answers | 0

Question

how to write code to find y???

I am new user to Matlab. I want to calculate the value of y for a given value of x if x=8 x=(y^2)+2 how to write code t...

4 years ago | 1 answer | 0