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

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

circa un anno 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 ...

circa un anno 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...

circa un anno 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...

circa un anno 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; ...

circa un anno 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...

circa un anno 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:...

circa un anno ago | 1 answer | 0

### 1

Question

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

circa un anno ago | 1 answer | 0

### 1

Question

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

circa un anno ago | 1 answer | 0

### 1

Question

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

circa un anno ago | 1 answer | 0

### 1

Question

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

circa un anno ago | 0 answers | 0

### 0

Question

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

circa un anno ago | 1 answer | 0

### 1

Question

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

circa un anno ago | 1 answer | 0

### 1

Question

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.

circa un anno ago | 1 answer | 0

### 1

Question

How to plot function with conditions (3d)
Suppose I want to plot the function % f(x,y) = x.*y by saying: [x,y] = meshgrid (-2:2:2); z = x.*y; surf(x,y,z) But what i...

circa un anno ago | 1 answer | 0

### 1

Question

Function that should be continuous isn't continuously plotted?
Given the function: f(x,y) = (x^3 - 3*x*y^2)/(x^2+y^2) I'd plot it typing: [x,y] = meshgrid(-2:0.2:2) z = (x.^3 - 3.*x.*y.^2...

circa un anno ago | 2 answers | 0

### 2

Question

How to plot vector with origin not at 0
I try to experiment with vectors a little, so that's where I stuck: I got a vector s s = t.* [1;1]; %t = 0:1:10 and a displace...

circa un anno ago | 1 answer | 0

### 1

Question

How to plot x^2 - y^2 = 1?
Very simple question to understand I think.

circa un anno ago | 2 answers | 0

### 2

Question

plotting Table doesn't work anymore?
I alyways plotted my tables like: T = readtable('path') x = T(:,1) y = T(:,2) plot(x,y) Why doesn't this work anymore??? ...

circa un anno ago | 1 answer | 0

### 1

Question

How to plot sphere in sphere coordinates?
I'm just trying to plot known sphere coordinates: function sphere(r) phi = linspace(0,2*pi); theta = linspace(0,pi); x = r...

oltre un anno ago | 2 answers | 0

### 2

Question

why does Matlab not expand(abs(a-b)^2) ?
Wolfram alpha shows: a^2 -2*a*b+b^2

oltre un anno ago | 1 answer | 0

### 1

Question

Difference between Matlab and Wolfram Alpha
These problems might occure frequently due to the varied syntax. This time it's about: solve(x^2-8*x+15<=1) what gives (accor...

oltre un anno ago | 2 answers | 0

### 2

Question

How to set a function for error propagation
Hey, this is kinda my first try with function My aim is to code an automatic sequence for error propagation. E.g. function [...

oltre un anno ago | 1 answer | 0

### 1

Question

Area under a shape?
Hello, I'd really like to know how to calculate the area beneath a shape like this: So from the outer borders to x-axis. Since...

oltre un anno ago | 1 answer | 0

### 1

Question

How to apply a fit on this shape?
Since my data doens't really count as a function cftool is not an option. I wonder whether this is still faisable to fit: (I t...

oltre un anno ago | 1 answer | 1

### 1

Question

customize legend: extra legend entry
On a first isight I didn't find the answere, but it might excist already. However to shorten things: I got the following legend:...

oltre un anno ago | 1 answer | 0

### 1

Question

How to fit with case differentiation
I guess this is a really tricky question and might solved with a good amount of mathmatical knowledge. But first things first: ...

oltre un anno ago | 0 answers | 0

### 0

Question

Don't simplify while using 'latex'
Hey, each time I use Matlabs fabulous latex function the term automatically becomes simplified. However, sometimes I want to emp...

oltre un anno ago | 1 answer | 0

### 1

Question

Easy Substitution (variable)
Actually this may be a really easy one, but I don't know what to search for, so here I just ask: I've got the equation delta = ...

oltre un anno ago | 1 answer | 0