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

8 days ago | 1 answer | 0

Question

How to plot x^2 - y^2 = 1?

Very simple question to understand I think.

13 days ago | 2 answers | 0

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

1 month ago | 1 answer | 0

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

1 month ago | 2 answers | 0

Question

why does Matlab not expand(abs(a-b)^2) ?

Wolfram alpha shows: a^2 -2*a*b+b^2

1 month ago | 1 answer | 0

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

4 months ago | 2 answers | 0

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

4 months ago | 1 answer | 0

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

4 months ago | 1 answer | 0

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

5 months ago | 1 answer | 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:...

5 months ago | 1 answer | 0

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

5 months ago | 0 answers | 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...

5 months ago | 1 answer | 0

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

5 months ago | 1 answer | 0

Question

How to code gaussian error function

In regard to coding, I wonder how you could execute the error function to any function, like C = atan((2*a)/(2*b)). So I'd expec...

5 months ago | 1 answer | 0

Question

How to combine 2 Fits done with cftool

I know right there's kind of an article in matlab concering this topic, but I don't grasp it. So here again, I set up 2 fits and...

5 months ago | 1 answer | 0

Question

How to move fitted plot along y axis

Hey, it's me again, this time I want to shift a fit I created with cftool: [xData, yData] = prepareCurveData( Fqr, Prem ); ...

5 months ago | 1 answer | 0

Question

How to apply fit-function on variable

So I've got a fit done with cftool: %% Fit: 'untitled fit 1'. [xData, yData] = prepareCurveData( N, A ); % Set up fittype a...

5 months ago | 1 answer | 0

Question

plot() doesn't work in .m file?

I'm slightly flustered: I just fitted a graph and typed plot() beneath to plot another graph, but Matlab gives error: %% Fit...

5 months ago | 1 answer | 0

Question

How to plot x and y with x evaluated in a function

It seems to be such an easy thing but I can't right remember So, I've got an array of x values (2708x1) and y values(2708x1) an...

5 months ago | 1 answer | 0

Answered

linear fit in Log Scale + extension

Thank you for your effort, that is what I implemeted: p1 = polyfit(f(1:2),qU(1:2),1);%however many points you want x=5000:5000...

linear fit in Log Scale + extension

Thank you for your effort, that is what I implemeted: p1 = polyfit(f(1:2),qU(1:2),1);%however many points you want x=5000:5000...

5 months ago | 0

Question

linear fit in Log Scale + extension

Hello, also this question might be trivial and frequently answered, but yet again I'm not able to grasp it. Long story short, th...

5 months ago | 2 answers | 0

Question

Random numbers around y-values

Hello, I've got a set of y-values. I'd like Matlab to plot random numbers around these y-values (max difference:15%). For you in...

6 months ago | 1 answer | 0

Question

Plot function with time step

Hello, even if this question was posed in a similar way, I couldn't apply it to my issue, also given the fact I'm very new. How...

6 months ago | 2 answers | 0

Question

How to determine the mean of certain y values ?

This may sound like a genuinely easy question, but I'm quite a newbie. So far I imported values from a .txt file (A = readtabl...

7 months ago | 1 answer | 0