Community Profile

photo

Auryn_


Active since 2015

Statistics

  • First Review
  • Thankful Level 3

View badges

Content Feed

View by

Question


Using the function fmincon
Hi, I want to optimise a function that I called FUNCTION where function [Err]=FUNCTION(coef) data1=... ...

mer än 4 år ago | 2 answers | 0

2

answers

Question


Non linear function for an optimal control problem
Hi, This is a typical optimal control problem. I want to look for the function that gives me the best shape to go from an ...

mer än 4 år ago | 1 answer | 0

1

answer

Question


Use files from iCloud Drive on Matlab
Hi, I have stored my matlab data on the iCloud Drive but I cannot find it when using Matlab. Coudl you please help me? Tha...

ungefär 5 år ago | 1 answer | 1

1

answer

Question


Plot - show fitting error
Hi, Starting with a set of data points, I use a fitfun function to fit it to a nonlinear scaling function A^x. Now, I would li...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Mean/average of a variable
Hello, I have a variable P(a,b,c) where a=2, b=1:150,c=1:100. Now, for each value of c, I want to calculate the mean of P: ...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


I cannot see the eps files saved
Hi, I have some 2D plots I did using the function pcolor and saved them as .eps files. When I try to open them with Preview (I...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


How to fit curve to see the scaling
Hi, I would like to see the scaling (\alpha) of my curve f(x,y): x^\alpha Thus, I need to fit my data to a curve but I cannot...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Legend in several columns
Hi, Every time I wanted to split my legend into more than one column I always used the function "columnlegend". Now i am cre...

mer än 5 år ago | 1 answer | 3

1

answer

Question


How to make the sum of all elements?
Hi, M=10; I have a matrix M=mxn and I want the sum of all elements, for n and m from 1 to 10. My question is why this: f...

mer än 5 år ago | 1 answer | 0

1

answer

Question


How to show the values are constant inside a cell array
Hi, I have a cell array that is 4x6. Inside each cell I have 1x31 values. I am studying the change of my variables in time...

mer än 5 år ago | 1 answer | 0

1

answer

Question


Select specific values inside a cell
Hi, I have a cell array that is 4x6. Inside each cell I have 1x31 values. I would like to access in each cell just the la...

mer än 5 år ago | 1 answer | 0

1

answer

Question


Columnlegend not working when plotting with errorbar
Hi, I am trying to plot multiple lines with the function errorbar (it works). Then I want to use multicolumn for the legend,...

mer än 5 år ago | 0 answers | 0

0

answers

Question


Plotting error bars in different scale?
Hi, I plotted the following: x = 1:5; y = 100*[0.2466 0.2195 0.1976 0.1796 0.1663]; err = 100*[0.0523 0.0494 0.0469 ...

nästan 6 år ago | 1 answer | 0

1

answer

Question


Average and error bars in Matlab for a complex array
Hi, I have a function M that is an 4-D complex variable of dimensions a*b*c*d. Now I want to average over the last dimensi...

nästan 6 år ago | 1 answer | 0

1

answer

Answered
Details on surf plot
Now the second part of the question: can I add labels on the lines orthogonal to the X axis? Cheers!

nästan 6 år ago | 0

Question


Details on surf plot
Hi, I have a 3D plot that I generated with this code: a= linspace(0.8,1.2,12); surf(a,1:59,abs(Z_data),'FaceColor' , ...

nästan 6 år ago | 3 answers | 1

3

answers

Answered
Plot in log-log
Awesome, thanks!

nästan 6 år ago | 0

Question


Plot in log-log
Hi, I am plotting in a log-log scale but the axis label does not display the numbers in a log scale. I have used lo...

nästan 6 år ago | 2 answers | 0

2

answers

Question


Plot 3D array
Hi, I have a cell array of 1x10 (variable k) where each of the 10 arrays are matrices of 80x31. Now I want to make a 3D p...

nästan 6 år ago | 0 answers | 0

0

answers

Question


How to access data in a cell array
Hi, I have a cell array of 1x10 where each of the 10 arrays are matrices of 80x31. If I want to access the data of each of t...

nästan 6 år ago | 3 answers | 1

3

answers

Answered
Decimal numbers in a triple for loop
Hi, now it seems to work! M=10; q = 0.1:0.1:1; n_pmT=zeros(length(q),1); n_pm=zeros(M,M,length(q)); for i...

ungefär 6 år ago | 0

Question


Decimal numbers in a triple for loop
Hi all, I want to run the equation for a range of q variables at an increment such as q = 0.1:0.1:1; I need to use a f...

ungefär 6 år ago | 2 answers | 0

2

answers

Question


Reshape array 3 variables into 2?
Hi, I have an array of A=1x100x50. How can I reshape it in B=100x50? I have tried with B=reshape(A,[100, 50]); B...

ungefär 6 år ago | 2 answers | 0

2

answers

Answered
Loop and plot in 2D
Now it works for ik=1:a for l=100-1:-1:0 ij=ik+l if ij > a break; end A(ik,ij...

ungefär 6 år ago | 0

Question


Loop and plot in 2D
Hi, I have a variable V(a,b,c) where a=1:50 b=a c=1:100 Now I would like to make a loop and plot the fol...

ungefär 6 år ago | 2 answers | 0

2

answers

Question


For loop for the variable and plot
Hello, I have a matrix of correlations between particles (50 particles). I want to compute the correlations between them, at ...

ungefär 6 år ago | 0 answers | 0

0

answers

Question


How to change a plot form 2D to 3D
Hello, I have a plot that I did using the function "pcolor", that is pcolor(X,Y,C). Now I would like to plot the same data in ...

ungefär 6 år ago | 1 answer | 0

1

answer

Question


Subscript indices must either be real positive integers or logicals. How to solve it?
Hi, I know this is asked very often, but still I don't know how to solve it in my case. This is the code: M=4; n =...

mer än 6 år ago | 0 answers | 0

0

answers

Question


Create function loading data from a cell
Hello, I am creating a function where I load data from a cell. I give different parameters (a,b,c) each time, like function Fu...

mer än 6 år ago | 0 answers | 0

0

answers

Question


Plot data from cell array
Hi, I have a cell array of 1x7 cell and each of this is a 1x100 double. I would like to make a surf plot like: surf(100,7,...

mer än 6 år ago | 1 answer | 0

1

answer

Load more