Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 1

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

mehr als 5 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

Beantwortet
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 ...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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.

mehr als 5 Jahre vor | 0

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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....

mehr als 5 Jahre vor | 1

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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))....

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 1

Beantwortet
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('-...

mehr als 5 Jahre vor | 0

Beantwortet
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||...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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') ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

Beantwortet
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 ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 5 Jahre vor | 1

Mehr laden