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...

2 years 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 ...

2 years 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');...

2 years 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...

2 years 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...

2 years 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...

2 years 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...

2 years 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...

2 years 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...

2 years 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 ...

2 years 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!

2 years 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 ...

2 years 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...

2 years 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...

2 years 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...

2 years 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!!

2 years 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...

2 years ago | 1 answer | 0

Question

how to convert a DLL file into an m file ?

Hello! I have found a matlab codes which have some files with DLL extension and I would like to know their contents, is it poss...

2 years ago | 1 answer | 0

Answered

save the output of system command using matlab

thank you for your reply! * I have made the change that you have suggested . it takes a long time since the generated file is...

save the output of system command using matlab

thank you for your reply! * I have made the change that you have suggested . it takes a long time since the generated file is...

2 years ago | 0

Question

save the output of system command using matlab

Hello! I am executing a system command via matlab. in the command I am writing the output to a file. when running the code I ca...

2 years ago | 3 answers | 0

Question

skip the headers in a text file and extract the data ?

I would like to extract the data only from a text file. the text file has a header which contains some numerical values as shown...

2 years ago | 1 answer | 0

Question

empty entry using ginput !!

Hello! I am using the function ginput in order to get the coordinates from a figure but I get x and y as a 0x0 double, any poss...

2 years ago | 2 answers | 0

Answered

how to get the usual form of a matrix from a txt file?

what if the file has got some text before the matrix, how can I still extract the matrix ?? thank you in advance !

how to get the usual form of a matrix from a txt file?

what if the file has got some text before the matrix, how can I still extract the matrix ?? thank you in advance !

2 years ago | 0

Question

how to get the usual form of a matrix from a txt file?

hello, I have a matrix defined in a txt file as it follows: row column value 1 1 -4.630 2 1 -4.307 ...

2 years ago | 2 answers | 0

Question

how to export the impedance matrix from Feko into Matlab

Hello, I would like to export the impedance matrix from FEKO into matlab but Matlab says that the .mat file is corrupted, any he...

2 years ago | 3 answers | 0

Answered

Error while converting a .mat file into ascii using Mat2Ascii function

Thank you very much! unfortunately I have the same error with the new generated file. Here I attach the file, I Hope to get he...

Error while converting a .mat file into ascii using Mat2Ascii function

Thank you very much! unfortunately I have the same error with the new generated file. Here I attach the file, I Hope to get he...

2 years ago | 0

Answered

Error while converting a .mat file into ascii using Mat2Ascii function

I don't want to extract information from this file only, the purpose is to be able to extract information from .mat files each t...

Error while converting a .mat file into ascii using Mat2Ascii function

I don't want to extract information from this file only, the purpose is to be able to extract information from .mat files each t...

2 years ago | 0

Question

Error while converting a .mat file into ascii using Mat2Ascii function

Hello, I would like to read a .mat file. I used Load it generate an error 'File might be corrupt.', so I though about using Mat...

2 years ago | 3 answers | 0

Answered

facing a PointLocation error while using ginput !

the DT was constructed as it follow: N=20; %Discretization parameter L=50; % Length for i=1:N+1 %...

facing a PointLocation error while using ginput !

the DT was constructed as it follow: N=20; %Discretization parameter L=50; % Length for i=1:N+1 %...

2 years ago | 0

Question

facing a PointLocation error while using ginput !

Hello! HELP PLEASE! I am using the PointLocation in my script but I keep getting this error 'Undefined function 'PointLocati...

2 years ago | 2 answers | 0