Beantwortet
fsurf: interval from parameters
If i plot something round i usually use polar coordinates t = linspace(0,2*pi,30); % angle array r = 0:5; ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to represent Xtick in years
What about simple scaling? x1 = 2012; x2 = 2020; x = 500:50:1100; x = (x-x(1))/(x(end)-x(1)); % scale 0 .. 1 x = x*(x2-...

etwa 6 Jahre vor | 0

Beantwortet
using for command to get multiple string values
Try this fprintf('%s\n', name_lists{:});

etwa 6 Jahre vor | 0

Beantwortet
How to use contourf with 1D data
Use linspace and meshgrid to create regular mesh xx = linspace(min(xdata),max(xdata),20); yy = linspace(min(ydata),max(ydata),...

etwa 6 Jahre vor | 1

Beantwortet
numerical double integral of an expression with vector defined variables
Here is a start phi = linspace(...) % define value for phi theta = linspace(...); % define theta dphi = ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
palce parameter value after using "solve" for a parametric eqn
Maybe geometrical approach? clc,clear a = 30; b = 60; c = 50; d = 70; [t1,t2,t3] = meshgrid(0:20:360); % create...

etwa 6 Jahre vor | 0

Beantwortet
Implicit 3D, memory error
What about this approach? cla [x,y,z] = meshgrid(linspace(0,6e5,30)); F = (z-x).^2+(x-y).^2+(y-z).^2-1210000000; isosurface(...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to change video gradient to improve edge detection
Try this I0 = imread('Screenshot 2020-04-09 at 15.50.08.png'); I1 = im2bw(I0,graythresh(I0)-0.03); % binarize image with tre...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
plotting a 2D-characteristic map with 3rd parameter as lines
Try patch A = [1 0.32 6 11 1 0.18 12.2 12 1 0.3 21.5 15.4 1 0.45 24.5 16.65 1 0.76 24.5 19.3 1 0.95 1...

etwa 6 Jahre vor | 0

Beantwortet
How to input excluded data
Try this clc,clear A = importdata('data.txt','\t'); T = A.textdata; blist = unique(T(:,end)); % create full li...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to apply a texture to a specific portion of a surface?
Use inpolygon to copy region you want Create new surface Apply texture to object

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to find x value for a given y?
Here is an example: f = @(x) sin(x); x = 0:10; x0 = fzero(@(x)f(x)-0.5,pi); plot(x0,f(x0),'or') line(x,f(x)) If you have m...

etwa 6 Jahre vor | 0

Beantwortet
How do I create a source field of light through a circular aperture?
First of all you forgout about element-wise: X1.^2 + Y.^2 % each element of matrix in power '2' Here is what i tried

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to plot for loop using concatenation to increase performance
Try to plot all together at once n = size(A,1); fv.vertices = A; fv.faces = [1:n-512; 512+1:n]'; patch(fv)

etwa 6 Jahre vor | 0

Beantwortet
How to fit a monotonically increasing map to a certain data?
Try f = fit([x(:) y(:)],z(:),'poly11'); % or manually % f = fit([x(:) y(:)],z(:),'a*x+b*y+c');

etwa 6 Jahre vor | 0

Beantwortet
fsolve for a set of equations
Try this syms x a = 1; b = 2; f = a*x+b; F = matlabFunction(f); fsolve(F,1)

etwa 6 Jahre vor | 0

Beantwortet
Select edges that connect subgraphs together
try ismember

etwa 6 Jahre vor | 0

Beantwortet
Reading in different files based on a array of strings
Use this simple construction Contact = {'C1.txt','C2.txt'}; %this is the array of strings that i am using for the names of each...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
VRML surface conic projection
Here is an idea: Projection onto cone: if your data in cartesian system - convert it to polar () New radius of projected d...

etwa 6 Jahre vor | 0

Beantwortet
Title on the colour bar and legend issues
Use handlers to add specific string to legend pcolor() hold on h1 = plot(); h2 = plot(); hold off legend([h1 h2],'red','bl...

etwa 6 Jahre vor | 0

Beantwortet
Filling a region between parametric curves?
Try this to detect which values in a wrong order % This is a plot of the region I want to get! X = [real(z_ub) flip(real(z_ub)...

etwa 6 Jahre vor | 1

Beantwortet
I am trying to create a normal random moving point for each individual point in a 3D scatter point. How do I go about to do this?
What about this? n = 5; [X,Y] = meshgrid(1:n); % create mesh T = 180*rand(n)-90; % initial angle...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Trouble calculating Acceleration from given velocity vector.
So what about this formula? a = diff(V)/diff(T) Just forgot about ./ element-wise operator a = diff(V)./diff(Time); Then use...

etwa 6 Jahre vor | 0

Beantwortet
How to load file that is without extension
Try importdata A = importdata('what.data.1')

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Error using ODE45
The name of function is myinput function u=myinput(t,M) But you are trying to pass as argument some u [~,Xout11] = ode45(@(t,...

etwa 6 Jahre vor | 0

Beantwortet
range different longitude and latitude geoshow
Here is my idea Use meshgrid to create a grid (red points) Use inpolygon to choose points inside map (blue circles)

etwa 6 Jahre vor | 0

Beantwortet
Applying different equations to sections of a column using a for loop
What about for loop? for i = 1:300 if i <= 100 y(i) = a1*x(i)+b1(1); elseif i <= 200 y(i) = a2*x(i)...

etwa 6 Jahre vor | 0

Mehr laden