Réponse apportée
How can I draw a kurdistan flag in matlab?
You can add something like this: phi360 = linspace(0,2*pi,43); r = 60 + 25*(-1).^(1:43); phi3...

plus de 5 ans il y a | 0

Réponse apportée
how to solve error occuring in underlined part?
Run this code, but set the debug condition to stop at errors: dbstop if error Then you'll get a debug-propmt at the line where...

plus de 5 ans il y a | 1

Réponse apportée
How can I do the image stitching with constant overlap area?
Something like this works for a smallish toy-example: % Read image Im = imread('cameraman.tif'); % Generate some tiles with a...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How do I convert fractional display to decimal display ?
You might have set format to rat somewhere, perhaps in a startup.m or the like. You could get back to more normal decimal output...

plus de 5 ans il y a | 0

Réponse apportée
How to use interpolation instead of integrating in chunks with ODE45?
Too long code. But this is what I use for cases where I have to integrate ODEs with time-varying data for one parameter: functi...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Solving Complex Line Integrals
Wouldn't it be simplest to just multiply the radius of the polar representation of your unit-circle with the desired radius? g ...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Integration with piecewise function
Doesn't this work: C_v4 = @(T) 0.0516*T.^3.*double(T<=0.6) + .432*T.^6.7.*double(0.6<T).*double(T<1.1) + 0.468*T.^5.6.*double(1...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Solve a set of ODEs with given initial conditions and final conditions
To me this seems to be a problem that the shooting-method would be suited for. That will require you to solve the problem multip...

plus de 5 ans il y a | 1

Réponse apportée
Matlab 2020a X11 forwarding crash
Perhaps the best solution is to run maltab in a VNC-vewer. That way you would avoid matlab having to rely on the X11 forwarding ...

plus de 5 ans il y a | 0

Réponse apportée
Fitting nonlinear noisy data
When I do this I typically write my own error-function or residual-function and then use fminsearch (or some of the general opti...

plus de 5 ans il y a | 0

Réponse apportée
Alternate form of eval function
You'll have to learn good programming-habits and utilise the vectorized capabilities of matlab. This looks like a case where you...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to convert complex one sided spectrum into time domain
You can do something like this: function fft4real = symmetrize(fftOnesided) fft4real = [fftOnesided,0, fliplr(conj(fftOnesided...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
add Int8 and int16
Think about what input variables you have, what type they have and which one you need to cast to another data-type.

plus de 5 ans il y a | 0

Réponse apportée
how to add 2d plot in 3d?
I'd do something like this: clf surf(t,x,U+3,U),shading flat hold on pcolor(t,x,U),shading flat ax1 = gca; ax2 = axes('pos...

plus de 5 ans il y a | 0

Réponse apportée
Transform 3D point cloud
If you have a 3-x-n array of point-coordinates you can rotate them in 2 ways, either rotate the points or the coordinate system....

plus de 5 ans il y a | 1

Réponse apportée
How to apply the loop index on the output (filename) of the sprintf function?
In your "workspace" panel you see the values (sizes) of the variables as they are after completing the loop. Your filname-variab...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Calculate mean of a matrix with different indices
So you effectively have different number of dx for each k? If so I'd do this something like this: angleradian2 = nan([MaxNrRows...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to 'Mirror Image' my Vectors
If your yellow point-markers are supposed to lie on/in/over the stream (river?) then you might have to either rotate their coord...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to get the FFT peaks from a non stationary signal
What you seem to attempt is nothing but extracting peaks out of ffts from sequences of shorter time-span. That ought to be exact...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Getting imaginary values for unequal spaced Gaussian function using NUFFT
If you take a look at what you work with: subplot(3,1,2) plot(real(f_k)) hold on plot(imag(f_k)) plot(abs(f_k)) su...

plus de 5 ans il y a | 0

Réponse apportée
MATLAB map and reduce: functional programming
You could get parts of the way with cellfun and arrayfun, typically in combination with anonymous functions (fcn = @(x) sin(x))....

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Confidence intervals for fitting parameters in a system of ODEs?
Your model-function seems to produce the residuals, , between modeled and observed concentrations. At the optimal values you ge...

plus de 5 ans il y a | 1

Réponse apportée
I need to speedup saving spectrogram images
Maybe you get some speedup by using print instead of exportgraphics. You can at least try and check that: ...as above print('-...

plus de 5 ans il y a | 0

Réponse apportée
How to write ||a-p||^2 in matlab code
Have a look at the norm function and its help and documentation. If your a and p are  [n x m] arrays and you want to get ||a-p||...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how can save different plot with different names file in loop use fullfile ?
Simply modify the filename: for idx_loop = % whatever you have ... ... spectrogram(M1,'yaxis') ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to filter noise from geomagnetic data?
You simply have to try. You could use standard linear filters (see the help and documentation for filtfilt or conv), you might u...

plus de 5 ans il y a | 0

Réponse apportée
Input signal and arguments in Ode45. Not enough imput arguments
The function dinamica expects 6 input arguments. However, the function, f that ode45 takes as input is handled as a function of ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Differential model won't calculate with powers <1
It is not given that a general nonlinear system of ODEs have analytical solutions. If you cannot get the symbolic toolbox to fin...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Response to an impulse(delta dirac)
That's not what I understand a Dirac-pulse to be. This is a 2 second long constant-force push. Implement it as such - on for 2 s...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
ODE - Save variables for every time step
This is something that is (simplest?) done by calculating the second output once after you've integrated the ODE-system. Either ...

plus de 5 ans il y a | 1

Charger plus