質問

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

3年弱 前 | 1 件の回答 | 0

質問

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

3年弱 前 | 2 件の回答 | 0

質問

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

3年弱 前 | 1 件の回答 | 1

質問

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

3年弱 前 | 1 件の回答 | 0

質問

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

3年弱 前 | 1 件の回答 | 0

質問

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

3年弱 前 | 1 件の回答 | 0

質問

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

3年弱 前 | 2 件の回答 | 0

質問

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

3年弱 前 | 0 件の回答 | 1

質問

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

3年弱 前 | 1 件の回答 | 0

質問

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

約3年 前 | 1 件の回答 | 0

質問

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

約3年 前 | 2 件の回答 | 0

回答済み

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

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

約3年 前 | 0

質問

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

約3年 前 | 1 件の回答 | 0

質問

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

約3年 前 | 1 件の回答 | 0

質問

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

約3年 前 | 1 件の回答 | 0

質問

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

約3年 前 | 2 件の回答 | 0

質問

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

約3年 前 | 1 件の回答 | 0

回答済み

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

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

3年以上 前 | 0

質問

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

3年以上 前 | 1 件の回答 | 0

質問

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

3年以上 前 | 2 件の回答 | 0

質問

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

3年以上 前 | 1 件の回答 | 0

質問

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

3年以上 前 | 1 件の回答 | 0

質問

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

3年以上 前 | 1 件の回答 | 0

質問

What is the Fourier Function of Matlab doing?

Hidden in the Matlab basic functions I discovered fourier(f) existst. This seems useful I thought, because It applies the fou...

3年以上 前 | 1 件の回答 | 0

質問

How to set Reallyl Basic iterative sum

I want to sum up all n*sin(n*x)-terms. I've found that f = n*sin(n*x) for n = 1:10 f(n+1) = n*sin(n*x); end sum(f) wo...

3年以上 前 | 1 件の回答 | 0

質問

How to plot streamlines continuously?

So here's my function: [x,y] = meshgrid(-2:0.2:2); hold all dy = (x.^3+y)./(x.^2+y.^2) ; norm = sqrt(dy.^2+1^2); quiver(x,...

3年以上 前 | 1 件の回答 | 0

質問

How to flip/ mirror plot on the diagonal in terms of y(x) = y^(-1)(x) (finverse) on restricted domain.

Given the function: x(y) = (exp(-y)*((1 - 4*y*exp(y))^(1/2) + 1))/2 usually I should be able to plot the inverse function by:...

3年以上 前 | 0 件の回答 | 0

質問

How to plot with 3 inputs but 2 are steady?

So I've got the function f(x,y,z) = [0;0;x+1]. My attempt at plotting it results in [x,y,z] = meshgrid(-2:0.2:2); fx = 0; fy...

3年以上 前 | 1 件の回答 | 0

質問

How to plot vector valued function with single input.

I wonder if this is even possible and the question itself is redundant. Normaly a vector valued function is plotted with 2 input...

3年以上 前 | 1 件の回答 | 0

質問

3-D-plot doesn't look like on Wolfram Alpha

I'm confused. By typing: [x,y] = meshgrid(-2:0.2:2) z = sin(x)./(y.^2+1) surf(x,y,z) I receive a totally different plot.

3年以上 前 | 1 件の回答 | 0