Domanda

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

quasi 3 anni fa | 2 risposte | 0

Domanda

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

quasi 3 anni fa | 1 risposta | 0

Domanda

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

Very simple question to understand I think.

quasi 3 anni fa | 2 risposte | 0

Domanda

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

quasi 3 anni fa | 1 risposta | 1

Domanda

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

quasi 3 anni fa | 2 risposte | 0

Domanda

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

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

quasi 3 anni fa | 1 risposta | 0

Domanda

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

circa 3 anni fa | 2 risposte | 0

Domanda

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

circa 3 anni fa | 1 risposta | 0

Domanda

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

circa 3 anni fa | 1 risposta | 0

Domanda

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

circa 3 anni fa | 2 risposte | 1

Domanda

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 3 anni fa | 1 risposta | 0

Domanda

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 3 anni fa | 0 risposte | 0

Domanda

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 3 anni fa | 1 risposta | 0

Domanda

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 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Risposto

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

oltre 3 anni fa | 0

Domanda

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

oltre 3 anni fa | 2 risposte | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0

Domanda

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

oltre 3 anni fa | 2 risposte | 0

Domanda

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

oltre 3 anni fa | 1 risposta | 0