Community Profile

photo

Niklas Kurz


Last seen: 3 mesi ago Active since 2020

Statistics

  • Thankful Level 5
  • First Review
  • Explorer

View badges

Content Feed

View by

Question


Using Matlab to create a LaTex document (for image import)
In order to import multiple figures in LaTex from one folder I have found following code: fileID = fopen('./incl_img_latex.t...

5 mesi ago | 1 answer | 0

1

answer

Question


How to give trail to particles/ How to fade out plots with time (complex example)
Inspired from a webproject I have created this n-body-simulation: First of a function to acces on: % calculating accelerati...

6 mesi ago | 2 answers | 0

2

answers

Question


Matlab simulation for planet motion
There were some attemps simulating planetary motion already, but I think mine is straightforward by solving and updating positi...

6 mesi ago | 2 answers | 0

2

answers

Question


How to plot wave function for finite square well? [Physics question]
A question addressed to other physicist among the MATLAB community: Considering a finite sqaure well potential: It turns o...

7 mesi ago | 1 answer | 0

1

answer

Question


LaTex for Titles in Appdesigner now possible?
I'm now finding into appdesigner myself and have saw multiple people asking how to incorporate LaTex. There are some workaro...

7 mesi ago | 1 answer | 0

1

answer

Question


How to plot symbolic function with string specification?
Briefly I want to execute syms x f = x fplot(f,'b','LineWidth',2) but a little fancier. I want the specification to be a ...

8 mesi ago | 2 answers | 0

2

answers

Question


Matlab wouldn't find simple inverse
Given the function defined via syms x a real; f = x^(a-1) Why Matlab won't find an inverse to that? finverse(f) is resulti...

10 mesi ago | 2 answers | 0

2

answers

Question


How to plot vectors exactly on the edge of another graph?
The best I've got is expressed by the following: clear [u,v] = meshgrid(-2:0.2:2); f = u.^2+v.^2-1; [du,dv] = grad...

11 mesi ago | 1 answer | 0

1

answer

Question


Matlab warning when using log
I have quiete a long script basically just consiting of comments for plotting pairs of points and customizing the resulting plo...

circa un anno ago | 1 answer | 0

1

answer

Question


How to fit a gaussian to unnormalized data
I do know this question has been asked in several kinds plus it's rather a mathematical question for mathstack like sites. But...

circa un anno ago | 1 answer | 0

1

answer

Question


Does order of multiplication really matter when using simplify ?
I noticed, when I type the following commands: syms x; syms n integer; cn = int(abs(x)*exp(-i*n*x),x,-pi,pi); cnp = ...

circa un anno ago | 2 answers | 0

2

answers

Question


expand and simplify are not reverse?
I thought any symbolic function that I expand I can simplify getting same results in both direction. But it seems to be just one...

circa un anno ago | 1 answer | 0

1

answer

Question


How to show axis in 3D
Any time I plot in 3D I get a little confused because of aggravated orientation. The main reason is the missing default visualis...

circa un anno ago | 1 answer | 0

1

answer

Question


improper integral: exp(ikx) undefined in Matlab?
I wanna integrate: With solution: But Matlab gives NAN: syms x k; assume(k,'integer'); int(exp(1i*k*x),x,-inf,inf)

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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; % ...

oltre un anno ago | 2 answers | 0

2

answers

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

Question


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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 2 answers | 0

2

answers

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 1 answer | 0

1

answer

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

oltre un anno ago | 2 answers | 0

2

answers

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

oltre un anno ago | 0 answers | 1

0

answers

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

oltre un anno ago | 1 answer | 0

1

answer

Load more