답변 있음
[solved] difference between 2 spectrograms
Spectrogram called without input arguments seems to plot log10 of the power. try this: im = pcolor(h/1000,(t/60),log10(abs((s')...

거의 7년 전 | 1

답변 있음
ODE45 Solution for a coupled equation
When running your function I get an initial growth of T, which is due to the k_ISC*n(1) term in your ode - that would represent ...

거의 7년 전 | 0

| 수락됨

답변 있음
How can I create a subplot of ode45 for a mass spring damper where the two plots have a different k value?
Simply add another parameter to your msdfunc for k: function zprime= msdfunc(t,z,k) m = 4; b = 0.25; if nargin < 2 || isempty...

거의 7년 전 | 1

| 수락됨

답변 있음
Solving nonlinear diferential equations system
That's a system of coupled first-order ODEs. Have a look at the help and documentation for ode45, ode23. HTH

거의 7년 전 | 1

답변 있음
How to generate Publication quality( for conferences/Journals) figures in MATLAB?
In the File menu go to print preview - from there you can set a number of different behaviours of matlab's print. Then print you...

거의 7년 전 | 2

| 수락됨

답변 있음
How to perform convolution with a dataset?
In matlab this should be as simple as f = A*(C*exp(alpha*t + D*exp(beta*t))); % or whatever you have for that part. G = psf; ...

거의 7년 전 | 0

답변 있음
Plot a scalar as a function of a parameter
It should be as simple as: for n = 1:N for t = 2:T pipiVal(1,n) = pipiC(t,n); % or however you get the phipi-values cor...

거의 7년 전 | 0

답변 있음
How do I create a colormap for a flat plane?
Use something like this: surf(x,y,z-1,x+0.5*y),shading flat You can use whichever linear combination of x and y to have your g...

거의 7년 전 | 0

| 수락됨

답변 있음
PLOT THE GRAPH OF VECTOR FUNCTIONS
So you want to plot a vector-function , where gives you 3-element vectors at points in 3-D space. For that you might get what...

거의 7년 전 | 1

답변 있음
How do I plot interpolated grid data and original datapoint set in the same plot?
You can always simply plot all your points: plot3(Xi,Yi,Zi,'r.') Or with scatter: scatter(Xi,Yi,32,Zi,'filled') But to me th...

거의 7년 전 | 0

| 수락됨

답변 있음
How to save figures from foor loop in separate folders
Generate your file-names with fullfile (that way you can have multiple directories in a cell-array, one for each of your wanted ...

거의 7년 전 | 0

| 수락됨

답변 있음
How to integrate a function u^3/(exp(u)-1) in the range of [0 0.033]??.
if numerical integration is good enough: Val = integral(@(x) x.^3./(exp(x)-1),0,0.033) % for which I get: 1.1831e-05 HTH

거의 7년 전 | 0

답변 있음
maximum value in scatter plot
Well that sounds like a task for histogram2, or any of the number of 2-D histogram functions available on the file exchange. The...

거의 7년 전 | 0

| 수락됨

답변 있음
Create coordinates on a convex hull
Perhaps this function is overkill, but to me it seems as if this FEX-contribution should help: xy2sn, I don't know if it is the...

거의 7년 전 | 0

답변 있음
how to draw a 3d surface of exp(x+iy)
Have a look at the dcolor submission to the file exchange. That should give you a good starting point for doing this. There ar...

거의 7년 전 | 1

답변 있음
Rotate 3D quiver
Matlab uses right-handed coordinate systems (sensible), with the default convention that z is in the upward vertical direction i...

거의 7년 전 | 0

답변 있음
Visualization of Euler angles
Maybe something as simple as plotting the unit-vectors before and after a rotation? That is something you can easily adapt and ...

거의 7년 전 | 0

답변 있음
How do I declare and iterate a variable in an ODE driver file?
The way I read your ODE-function your Snh_in_1 is the initial value of the second component of y. If so it should be no more dif...

거의 7년 전 | 0

답변 있음
Plotting a 2D crystal lattice from two primitive lattice vectors
If you do it stepwise it becomes "not too tricky": e1 = [-0.5; -sqrt(3)/2]; % Your unit e2 = [1; 0]; % vectors ...

거의 7년 전 | 1

답변 있음
How to do matrix or table multiplication?
Looping seems simplest and most easily readable for humans: szI = size(IntakeTable); szE = size(ExhaustTable); resultTable = ...

거의 7년 전 | 1

답변 있음
This how i want the plot to be
pcolor(x,y,I),shading flat,xlabel('x-text'),ylabel('y-text'),colorbar HTH

거의 7년 전 | 0

답변 있음
How to store large data sets with different types of information?
If you're planning to run all analysis in matlab why not just store everything in a .mat-file. In this scenario just have a sit-...

거의 7년 전 | 0

| 수락됨

답변 있음
indepvar and depvar are of inconsistent sizes with polyfitn
Yes, you send in an array [x1,x2] of size [1 x 20] and an array y of size [ 1 x 10] into polyfitn. The polyfitn version I have (...

거의 7년 전 | 2

| 수락됨

답변 있음
Can someone answer this?
Yes most people reading these pages can. You can too. Your learning experiece depends crucialy on your effort to learn. Check th...

거의 7년 전 | 0

답변 있음
Plotting 4D data
Try something like this: t = M(:,1); x = M(:,2); y = M(:,3); z = M(:,4); scatter3(x,y,z,32,t,'filled') HTH

거의 7년 전 | 1

| 수락됨

답변 있음
Can anyone help in this error Error: The expression to the left of the equals sign is not a valid target for an assignment.
It looks like you should first check that the string generated by your strcat function call. To me it look like you generate an ...

거의 7년 전 | 0

답변 있음
matrix multiplication error with too many variables in the equation .
Your first multiply are a matrix multiplication, you can achieve what you want if you make sure that C is a column-vector and t...

거의 7년 전 | 0

| 수락됨

답변 있음
Try using or tightening upper and lower bounds on coefficients.
For arbitrary fitting tasks I personally prefer to use weighted least-square minimization using some optimization function, if ...

거의 7년 전 | 0

답변 있음
How to obtain variables from a structure inside a for loop?
It seems that you read in entire data-sets into a number of numbered struct-variables (presumably s_1, s_2,..., s_25). Dont do t...

거의 7년 전 | 0

| 수락됨

답변 있음
How to plot quiver with an input of Temperature data?
Presumably your heat-flux is just proportional to the temperature gradient (assuming constant and isotropic heat conductivity), ...

거의 7년 전 | 1

| 수락됨

더 보기