Community Profile

photo

darova


Last seen: Today
875 total contributions since 2019

darova's Badges

  • 12 Month Streak
  • Guiding Light
  • Thankful Level 3
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
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

environ 11 heures ago | 0

| accepted

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

environ 12 heures ago | 0

Answered
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

environ 12 heures ago | 0

| accepted

Answered
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)

environ 14 heures ago | 0

Answered
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');

environ 15 heures ago | 0

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

environ 16 heures ago | 0

Answered
Select edges that connect subgraphs together
try ismember

environ 17 heures ago | 0

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

environ 17 heures ago | 0

| accepted

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

environ 20 heures ago | 0

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

1 jour ago | 0

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

1 jour ago | 1

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

1 jour ago | 0

| accepted

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

2 jours ago | 0

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

2 jours ago | 0

| accepted

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

2 jours ago | 0

Answered
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)

2 jours ago | 0

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

2 jours ago | 0

Answered
Make white portions of slice of flow data transparent
An example of how to make some faces transparent [X,Y] = meshgrid(-10:10); % generate mesh Z = -X.^2-Y.^2; ...

2 jours ago | 0

| accepted

Answered
calculating and writing sorted results in matlab
Can I use the command dlmwrite with some parameters? Yes you can. example M = [1 2 3; 4 3 2]; dlmwrite('myFile.txt',M,'delim...

3 jours ago | 0

Answered
solving 4 equation with 4 unkowns
It's because of the way you concantenate your equations Example of two different declarations [1 - 2] ans = -1 [1 -2] ...

3 jours ago | 0

Answered
Tight surface meshing of 3D points
I just looped through all edges and calculated length clc,clear load points.mat ii = 1:50:size(a,1); % i reduced size of...

3 jours ago | 0

Answered
Function returns a vector of length 6, but the length of initial conditions vector is 34. The vector returned by ICEMODELFUNC and the initial conditions vector must have the same number of elements.
You want several solution for thetaRAD So just put your ode45 function inside for loop tspan = t0:tdelta:tf; for i = 1:length...

3 jours ago | 0

Answered
How created a graph from unordered node list?
Try this x = x(:); y = y(:); plot([x(source) x(target)],[y(source) y(tagrget)]) or patch function fv.vertices = [x(:) y(:)]...

3 jours ago | 0

Answered
How can I get velocity values for stream3 function
A short example clc,clear cla load wind [sx sy sz] = meshgrid(80,20:10:50,0:5:15); h = streamline(stream3(x,y,z,u,v,w,sx,sy...

3 jours ago | 0

| accepted

Answered
Rotating projectile curve about y-axis
You can create a mesh in polar system of coordinates Assuming t = linspace(0,2*pi,30); % angle r = x; ...

3 jours ago | 0

Answered
Plotting a sphere consisting of planes
Use patch for this problem % create data of format % Ax Ay Az % Ax Ay Az % ... % Bx By Bz % Bx By Bz % ... % Cx Cy Cz %...

3 jours ago | 0

Answered
tracking object in a video
if these [X_barycentre, Y_barycentre] are coordinates of a center Use imcrop to crop the image h = 50; % side of recta...

3 jours ago | 0

| accepted

Answered
1akf or01 -=)r^ nbodp0 JdnqOi
See the solution

3 jours ago | 0

Answered
What does the output of stlread function represent?
Please see

3 jours ago | 0

Load more