Community Profile

Niklas Kurz

Last seen: Today
63 total contributions since 2020

View details...

Contributions in
View by

Question

How to fill a volume plot of a vector valued functions (with 3 variables)
Again, I'm ascending new ground, now dealing with volume plots. I'm aware of Matlabs documentary concering this topic. But it do...

6 days ago | 1 answer | 0

1

Question

Filling inside of a plot with color (gradient)
I'm coming back to filling areas with color, trying this time to get the most beautiful result: Here I've got the plain vect...

10 days ago | 1 answer | 0

1

Question

How to include function in legend
I tried all possibl string2functions of Matlab, but not getting quiete the result. Here's my best try: syms x F = x^2; % ...

10 days ago | 2 answers | 0

2

Question

Two different solutions for one differential equation (population model)
I'll try solving the ODE: Substituting Transforming to: Solving I get: Finally, after back substitution: complete so...

15 days ago | 1 answer | 0

1

Question

Error when using variable in axis
I've: syms w we B U A = (w*U)/(sqrt((-w^2+we)^2+(B*w)^2)); syms R L C Aw = subs(A,{B,we},{R/L,1/(L*C)}); fplot(su...

21 days ago | 1 answer | 0

1

Question

How to set Assumptions for function handle?
easy case: I'v gut a function handle: f = @(x,y,z)x.^2+y.^2+z.^2-1; fimplicit3(f) for plotting an implicit function. Now ...

25 days ago | 1 answer | 0

1

Question

Defining a simple function with text/string 'on'
The Idea I'm thinking about really is simple and actually just for getting used to 'functions' My Code is just based on: ax = ...

26 days ago | 1 answer | 0

1

Question

Sadly Matlab didn't enabled color-coded vectors in their ever so neat function quiver Therefore there are endless detours open ...

1 month ago | 1 answer | 0

1

Question

Matlab: differential equation: starting conditions are wrong?
I solved manually: with but if I solve it with Matlab: syms v(t) g alpha m v0; D = diff(v,t) == g - alpha/m*v; ...

1 month ago | 2 answers | 0

2

Question

How to get multiple variables in 'assume' ?
For example If I were to set syms v m g k t real and I want all of them to be handled as variables greater than 0, but not b...

1 month ago | 1 answer | 0

1

Question

Plotting a function with difference between 2 vectors?
I want to plot where is the magnitude of the distance between 2 vectors: : If I would implement this idea in Matlab: [r1,r...

1 month ago | 1 answer | 0

1

Question

Getting the area of a surface integral from Matlab
I'd like to approve my solution of where is the unit sphere Therefore I want to calculate where is the parametrization of t...

1 month ago | 1 answer | 0

1

Question

How to get norm (magnitude) of a vector the simple way?
I just want to get the norm of syms phi the; c = [-cos(phi)*sin(the)^2;-sin(phi)*sin(the)^2; - cos(the)*sin(the)*cos(phi)^2 -...

1 month ago | 1 answer | 0

1

Question

plot simple 2D-surface from 2D-vector valued function
It's really frustrating me that I manage to transfer it into 3D and not 2D. Her'es what I'm talking about: I got a function f:...

1 month ago | 2 answers | 0

2

Question

How to Scale Gradient Field for large z-values?
I want to plot a function R^2 -> R with gradient Field beneath: f2 = @(x,y) 1./sqrt(x.^2+y.^2); [u2,v2] = meshgrid(-1:0.01:1...

1 month ago | 0 answers | 0

0

Question

plot3 with implicit domain
I'd like to plot f(u,v) = (u,v,sqrt(1-u^2-v^2)) whereas u^2+v^2 <1; I thought of using plot3 and defining [u,v] = deal(linsp...

2 months ago | 1 answer | 0

1

Question

Difference between plotting 3D Graphs (Curve vs Area)
I discovered 2 plotting methods that I can't really distinguish: [x] = meshgrid(-1:0.1:1) y = x.^2; z = x; surf(x,y,z)%plot...

2 months ago | 1 answer | 0

1

Question

Simple limit returning NaN: f(x) = exp(-1/x)
By intuition and some opinions on Mathstack the limit of this function should be coming close to 0. However syms x; limit(exp(...

2 months ago | 2 answers | 0

2

How to colormap different functions with one gradient?
So I found a sneaky workaround: just bring it in 3D and apply a simple command [u,x] = meshgrid(0:0.01:2*pi); ux = 1+sin(3.*...

4 months ago | 0

Question

How to colormap different functions with one gradient?
So carefully I prepared this piecewise function: u = 0:0.01:2*pi; v = 2*pi:0.01:4*pi; w = 4*pi:0.01:6*pi; f = 1+sin(3*u);...

4 months ago | 1 answer | 0

1

Question

fimplicit3: colormapping (3DContourPlot)
This is totally optional and off pure interest: If I plot a manifold with this powerful function: f = @(x,y,z) x.^2 + y.^2...

4 months ago | 1 answer | 0

1

Question

X label cuts off in logscale
I assume the x numbers are not shown beacause the plot is squeezed too tight. How to fix it? f = 1:0.01:20000; db = zeros(l...

5 months ago | 1 answer | 0

1

Question

loop: stop if value repeats
In my case this is based on N = Number G = Guess x = 1:N R= mod(G^x,N) if R repeats I want the calculation mod(G^x,N...

5 months ago | 2 answers | 0

2

Question

While loop with power.
I'd really be curious to know how to code the statement: , thus finding p until the euqation becomes true. Sounds ...

5 months ago | 1 answer | 0

1

How to plot spectrogram with actual time?
gosh, spectrogram(y,128,120,128,fs,'yaxis') % colormap(jet); (optional optic) if your Data is really large and scaled in ...

5 months ago | 0

Question

How to plot spectrogram with actual time?
I've tried a plenty of time now, awaring that there are many solution on the web, but none of them were working fine for my Issu...

5 months ago | 1 answer | 0

1

Question

Can Matlab handle this color scheme?
According to the data that I attached I plotted and colored the plot manually in order that it looks funky like this: Qu...

5 months ago | 2 answers | 0

2

Question

Why is frequency of graph differing?
I like to graph the frequency of 440 Hz and analyse it I use the following code: figure(1) sf = 1000; %sampling f = 440; ...

5 months ago | 1 answer | 0

1

Question

Why do I hear nothing? sound function
I finally wanna hear what a linear function sounds like. Why does: dt = 0.001; t = 0:dt:2; x = 1.*t; plot(t,x) sound(x,1/d...

5 months ago | 1 answer | 0

1

Question

How to change color in Graph (jet)
I copied and pasted the following code that describes a Fourier Series % Define domain dx = 0.001; L = pi; x = (-1+dx:dx:...

5 months ago | 1 answer | 0