Pregunta


polar interpolation of data acquired in a cartesian plane
I'm working on a problem that I've modeled as: [x,y] = meshgrid(-20:0.1:20,-20:2:20); xx = vectorizeMatrix(x); yy = v...

alrededor de 13 años hace | 0 respuestas | 1

0

respuestas

Respondida
Write a loop that can generate all data in one M-file with one variable change
To answer your comments: After looking back at the code, I made a big assumption that's not the best to make I think. I assum...

alrededor de 13 años hace | 0

| aceptada

Respondida
What am I doing wrong!?
Ah I see the problem now. In your original post you had s1 = [0.4, 0.4, 1.6]; but nothing using s1 in it. Now that I see...

alrededor de 13 años hace | 0

| aceptada

Respondida
Plot a time series with the whole number not 10^(n)
Yeah I deleted my answer after I realized that num2str doesn't work properly, but found that num2cell does. Glad it worked for y...

alrededor de 13 años hace | 1

Respondida
What am I doing wrong!?
I'd suggest using the following code, it's not pretty, but it gets the job done without any toolboxes. x0 = [0.2, 0.4, 0.6]...

alrededor de 13 años hace | 0

Respondida
Write a loop that can generate all data in one M-file with one variable change
You could just add another dimension to your hh and tt calculations like this: for j = -1:-1:-5 q = 0; dt = 10^j; ...

alrededor de 13 años hace | 0

Respondida
Saving data to EXCEL
Are you having problems at this line? xlswrite(resultsfilename,RESULTSLOCATION,1,'A10:num2str(j)'); If so, I would bet th...

alrededor de 13 años hace | 0

Respondida
Store a variable in a loop
how about something simple like this? n = [0 0.01 0.5 0.6 1 1.2 1.5]; for i = 1:length(n) stored(i,1) = 1 + n(i);...

alrededor de 13 años hace | 0

| aceptada

Respondida
Plotting atan()
Not sure I'm understanding the question, are you wanting to replace any values > pi/2 with pi/2? (and any values < -pi/2 with -p...

alrededor de 13 años hace | 1

Respondida
Out of Memory using fgetl
Just throwing out ideas here, is your error coming at the first call to fgetl or after calling fopen? Could it be that matlab...

alrededor de 13 años hace | 0

Respondida
Plotting a function
f = @(x) 1/((.8441^2-x^2)^2+(.8441*x/4)^2)^(1/2); fplot(f,[0,2])

alrededor de 13 años hace | 0

| aceptada

Respondida
??? Error using ==> double Too many input arguments.
total = total + double(int(5.119*exp(-0.08898*x)+13.47*exp(-0.0003734*x)),x,t2,t2+ton); Your parentheses are incorrect here....

alrededor de 13 años hace | 0

Respondida
save a variable nameing it after a string
can you not import the string prior to saving? something like: ... str = importFun(file); eval([str ' = matToSave;'])...

alrededor de 13 años hace | 1

| aceptada

Pregunta


Error when using validatestring in inputParser addOptional
I'm getting the following error when running isenExpan('a','m',2,1.4,'sub') with the code below: ??? Error using ==> isenExp...

alrededor de 13 años hace | 1 respuesta | 2

1

respuesta