Feeds
提问
Using the function fmincon
Hi, I want to optimise a function that I called FUNCTION where function [Err]=FUNCTION(coef) data1=... ...
5 years 前 | 2 个回答 | 0
2
个回答提问
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 ...
5 years 前 | 1 个回答 | 0
1
个回答提问
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...
5 years 前 | 1 个回答 | 1
1
个回答提问
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...
5 years 前 | 1 个回答 | 0
1
个回答提问
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: ...
6 years 前 | 2 个回答 | 0
2
个回答提问
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...
6 years 前 | 0 个回答 | 0
0
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 3
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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,...
6 years 前 | 0 个回答 | 0
0
个回答提问
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 ...
6 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答已回答
Details on surf plot
Now the second part of the question: can I add labels on the lines orthogonal to the X axis? Cheers!
Details on surf plot
Now the second part of the question: can I add labels on the lines orthogonal to the X axis? Cheers!
6 years 前 | 0
提问
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' , ...
6 years 前 | 3 个回答 | 1
3
个回答提问
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...
6 years 前 | 2 个回答 | 0
2
个回答提问
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...
6 years 前 | 0 个回答 | 0
0
个回答提问
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...
6 years 前 | 3 个回答 | 1
3
个回答已回答
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...
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...
6 years 前 | 0
提问
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...
6 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答已回答
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...
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...
7 years 前 | 0
提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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 ...
7 years 前 | 0 个回答 | 0
0
个回答提问
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 ...
7 years 前 | 1 个回答 | 0
1
个回答提问
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 =...
7 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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,...
7 years 前 | 1 个回答 | 0