Question

call a function from another function with one changing argument

I have a function function dos= beam(x) This function calculates certain parameters such as "moment", "stress" etc...

4 years ago | 2 answers | 0

Question

Getting an Error in input arguments

error is >>Error using ga (line 342) Not enough input arguments. Caused by: Failure in initial user-supplied nonli...

4 years ago | 0 answers | 0

Question

getting an error " not enough input arguments"

error is >>Error using ga (line 342) Not enough input arguments. Caused by: Failure in initial user-supplied nonli...

4 years ago | 1 answer | 0

Question

Problem with understanding the error

I have the following code function x = mapvariables(x) data=xlsread('newsections.xlsx'); %reading data from excel file al...

4 years ago | 2 answers | 0

Question

Map certain specific values from excel file in a Genetic Algorithm

function x = mapvariables(x) data=xlsread('newsections.xlsx'); %reading data from excel file.This excel file has 65 rows... ...

4 years ago | 0 answers | 0

Question

How to map various properties using genetic algorithm?

Guys, I have a list of various steel section sizes and their corresponding properties (such as area,moment of inertia,radius etc...

4 years ago | 2 answers | 0

Question

Coordinate system in matlab

Hi Guys. I am creating a building structure.Various coordinates are inputted to define the geometry of the structure. The coor...

4 years ago | 1 answer | 0

Question

Taking discrete values from a given set using genetic algorithm

Guys , I have an optimization problem in which, my variables are discrete. These variables have to take value from a given stand...

4 years ago | 1 answer | 0

Question

return to a previous statement

Guys,in my code I have assigned some values to certain variables and then I did some analysis.The results of analysis, are then ...

4 years ago | 1 answer | 0

Question

form a row vector

I have to form a row vector x=[5 6 16 17 27 28 38 39....] till the total number of elements become 'n' where 'n' is entered by t...

4 years ago | 2 answers | 0

Question

max value from particular set of rows and columns

Guys, I have a 12X40 matrix. I want to search for the max value but in certain rows and columns. Say, I want to search for max...

4 years ago | 2 answers | 0

Question

How to extract a specific position of excel cell in an iterating matlab file

Guys, I have a matlab file that takes data from an excel file and does the analysis. My excel file has 65 rows and 16 columns. M...

4 years ago | 1 answer | 0

Question

execute a statement from one .m file into another .m file by specifying line number.

Guys , I have two .m files. I wish to execute certain part of code from my first file in my second file.Is there a way I can do ...

4 years ago | 1 answer | 0

Question

create a vector ,of sets of predefined numbers stored in another row vectors

Guys,I have two row vectors X=[3:6] and Y=[8:27].I want to create and store all possible combinations of (X,Y) in another vector...

4 years ago | 2 answers | 0

Question

find max value in a matrix

I have a=[ 1 2 3; 7 8 9; 4 5 6; 2 1 3]. I want to find max value in the matrix 'a' but i don't want it to consider second row. S...

4 years ago | 1 answer | 0

Question

move rows in a matrix

Guys, I have a Matrix X= [A; B; C; D ; E; a; b; c; d; e ; f] each alphabet represents a row matrix wit...

4 years ago | 1 answer | 0

Question

generate a matrix along the length of an inclined line

I have an inclined line of a given length 'L' in XY coordinate plane, at a certain angle alpha with global X axis.My input would...

4 years ago | 1 answer | 0

Question

Max Min value in every column Of Matrix

I Have a code that gives me some output in my command window as a 9 by 80 matrix. I want that when I run the program and it giv...

4 years ago | 2 answers | 0

Question

How to generate the following matrix

I have x=[1 2 1 1; 4 5 1 1 ; 7 8 1 1]. I want a matrix in which this matrix repeats itself 10 times using repmat function and ...

4 years ago | 1 answer | 0

Question

how to get following matrix using bsxfun

I have a matrix x=[0 0 0;5 8 0; 7 6 0]. I want a matrix m=[0 0 0; 5 8 0 ; 7 6 ...

4 years ago | 2 answers | 0

Question

create various topologies of a structure

hello guys. I want to plot various positions of coordinates, inside a given rectangle. In other words, a rectangle is given and...

4 years ago | 0 answers | 0

Question

how do i plot a rectangle havng cetain dimensions and inside it even number of parametric cordinates such dat the centres of all cordinates and centre of rectangle coincide?

i have to define a plan geometry in which my parametric input will be numb of columns..i wish to put columns in such a way dat d...

5 years ago | 1 answer | 0