Question

help on a histogram plot!

Hello! I have a matrix (5x5) which I would like to plot (in 3D) using the hist3, I would like the plot to be a (5x5) grid where...

4 days ago | 1 answer | 0

Question

plotting issue along the x-axis !

Hello ! I would like to plot two curves in the same figure, to make my issue more clear let consider the following example: ...

3 months ago | 1 answer | 0

Question

Question about extracting a structure field using eval

hi! I am extracting the fields of a structure using the following code names = fieldnames(BD); for ii = 1: len...

4 months ago | 1 answer | 0

Question

NaN entries problem !

Hello! I have 2 matrices which I would like to add them (simple addition +) but I get in the resulting matrix some NaN entries ,...

5 months ago | 1 answer | 0

Question

error using interp1 !!

Hello! I wanted to interpolate the NaN values within a matrix , and it works perfectly but I wanted also to interpolate the Inf...

5 months ago | 1 answer | 0

Question

controlling the directory of the output file?!

Hello! I have three files, 'originFile' which contains file1 and file2 , I would like to know how can I force Matlab to save th...

5 months ago | 1 answer | 0

Answered

how to export the impedance matrix from Feko into Matlab

Thank you very much for your answer! I just wanted to tell that the real part is ill conditioned that is why you get negative va...

how to export the impedance matrix from Feko into Matlab

Thank you very much for your answer! I just wanted to tell that the real part is ill conditioned that is why you get negative va...

5 months ago | 0

Question

Question about integration within matlab

I would like to know how far would be my code correct if I used the 'sum' function to compute a double integral or should I use...

6 months ago | 1 answer | 0

Question

eliminate the nullspace of a matrix

Hello, how can I eliminate the nullspace of a square matrix using Matlab? Thank you!

7 months ago | 1 answer | 0

Question

issue using the rref function ?!

Hello! I would like to use rref function in order to remove the linearly dependent elements from my matrix , but when using rre...

8 months ago | 0 answers | 0

Answered

save new field to a structure?!

I have been googling for almost one hour but no result, this is the code that I am using to save the new added field but I lose ...

save new field to a structure?!

I have been googling for almost one hour but no result, this is the code that I am using to save the new added field but I lose ...

8 months ago | 0

Question

save new field to a structure?!

Hello! I have a 'myfile.mat' which contains several structures struct1, struct2,... Now I would like to save a new added field...

8 months ago | 3 answers | 0

Question

Legend of Many curves on one graph?!

Hello, I would like to have a legend that is on a for-loop so for each entry I would like to have a name of my data , how can I ...

9 months ago | 1 answer | 0

Question

transform a 3d matrix into cell array

hello I would like to transform m by n by k matrix into cell array as k by 1 where each cell contain m by n matrix, how can I do...

9 months ago | 1 answer | 0

Question

error using cellfun!

hello! I am having troubles with cellfun as I have defined a new class of my data which is not supported by cellfun , I get the ...

9 months ago | 1 answer | 0

Answered

how to make a script that plots all data loaded from to different repositories?

problem solved! just add the following line to the code, thank you very much ! filepattern2 = fullfile(direction2,'*.mat');...

how to make a script that plots all data loaded from to different repositories?

problem solved! just add the following line to the code, thank you very much ! filepattern2 = fullfile(direction2,'*.mat');...

10 months ago | 0

Answered

how to make a script that plots all data loaded from to different repositories?

I have written the following code, and I have made the files in both repositories with the same name, I get the data from the fi...

how to make a script that plots all data loaded from to different repositories?

I have written the following code, and I have made the files in both repositories with the same name, I get the data from the fi...

10 months ago | 0

Question

how to make a script that plots all data loaded from to different repositories?

hello! I must plot alot of data, so I would like to know if there is a way how to make a script that loop over all the data fil...

10 months ago | 3 answers | 0

Question

how to make a constant global so all packages files use it?

hello! I would like to define a constant in such a way all my functions in the package folders use it , how can I do it ?? Thank...

10 months ago | 1 answer | 0

Question

how to loop over the structure fields and get the type of data ?!

hello! I would like to loop over the fields of a structure and get the type of data for each field, so I can do further manipula...

10 months ago | 1 answer | 0

Question

problem with extra entries in a matrix!

Hello, I would like to fill a matrix but I have a problem in filling it, because I get some extra entries even though I have in...

10 months ago | 1 answer | 0

Question

what is the difference between using the zeros array or nan array ?!

Hello! I would like to know what is the difference between initializing an array using the zeros array and nan array in matla...

10 months ago | 1 answer | 0

Question

how to exit a for loop if a condition is true?!

hello! I would like to exit a for lopp is a condition is true but my code doesn't seem to work, could you help me to figure out ...

10 months ago | 2 answers | 0

Answered

derivative of legendre associated functions

this is the code I am using. Hope you can help!

derivative of legendre associated functions

this is the code I am using. Hope you can help!

11 months ago | 0

Question

derivative of legendre associated functions

hello! I am trying to implement the derivative of legendre associated functions based on the recurrence equations, the problem ...

11 months ago | 1 answer | 0

Question

derivative of bessel function of the first kind !!

Hello! I would like to check if my implementation of the derivative of bessel function of the first kind is working properly or...

12 months ago | 0 answers | 0

Answered

trimesh and trisurf produces a very bad triangulation results?!!

hello! the problem was that the triangles contained not only the nodes but also their domain number (inside or out side the ob...

trimesh and trisurf produces a very bad triangulation results?!!

hello! the problem was that the triangles contained not only the nodes but also their domain number (inside or out side the ob...

1 year ago | 0

| accepted

Question

trimesh and trisurf produces a very bad triangulation results?!!

Hello! I am trying to model a closed surface, but trimesh and trisurf produces a very bad plot, how can I improve it?: is there...

1 year ago | 1 answer | 0

Answered

Matrix dimensions must agree for computing spherical harmonics !!!!

the output should be a matrix I have solve it by using the transpose of P now it works! Thank you!!

Matrix dimensions must agree for computing spherical harmonics !!!!

the output should be a matrix I have solve it by using the transpose of P now it works! Thank you!!

1 year ago | 0

Question

Matrix dimensions must agree for computing spherical harmonics !!!!

Hi i am trying to calculate the spherical harmonic but I get an error saying that the matrices dimensions must agree, here is th...

1 year ago | 1 answer | 0