Community Profile

photo

darova


279 2019 年以降の合計貢献数

darova's バッジ

  • Thankful Level 2
  • 6 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • Pro
  • First Answer
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
colored Line plot according to a third variable
clc,clear % generate some data x = linspace(0,10,10); y = x.^2; x = [ x nan ]; % i added nan for 'patch...

1日 前 | 0

回答済み
Drawing a circle of ones by using a pre-defined grid with pcolor
Z1 = R <= a^2; % place ones Gauss shape Place R isntead of x

1日 前 | 0

| 採用済み

回答済み
Relative Displacement and Velocity
Here is said that x3 and x4 - velocities So i'd just do: v3 = x(:,3); v4 = x(:,4); plot(t,v3./v4)

3日 前 | 0

回答済み
ode45 2 degree of freedom
Take a closer look on example from MATLAB help I suggest you to comment these lines (or remove) since you are using odeToVect...

3日 前 | 0

回答済み
How to convert Temperature maps into rgb images
This should work n = 100; % number of colors mycolor = jet(n); ...

4日 前 | 0

| 採用済み

回答済み
Bilinear interpolation of gridded data
Hi! This how i do this clc,clear load Variables.mat [m,n,k] = size(predictor); lon = linspace(59.06,120.93, m); lat = l...

4日 前 | 0

| 採用済み

回答済み
Rotate Spherical Cap On Sphere
I rotated data about X axis first (theta angle). Then i am rotating about Z (phi angle) clc,clear p = linspace(0,2*pi,50); ...

4日 前 | 0

| 採用済み

回答済み
How to use streamline function?
Couldn't figure out why streamline didn't work But something similar like stream can be written manually See attached script ...

4日 前 | 0

回答済み
how to mask certain regions when using superpixel
Try this simple example clc,clear A = imread('image.png'); [L,NumLabels] = superpixels(A,N); ix = find(L == 1); %...

4日 前 | 0

| 採用済み

回答済み
Plotting 3D thoroidal field streamline
I used quiver3 Can't you just draw circles if it is that straight?

5日 前 | 1

| 採用済み

回答済み
Video file of changing solid colors
TRY HexCodes = VideoWriter('\Users\~\Documents\MATLAB\Hexcode_Colors.mp4','MPEG-4'); HexCodes.FrameRate = 30; % Frames ...

5日 前 | 0

回答済み
Error using vertcat Dimensions of arrays being concatenated are not consistent.
MATLAB doesn't know if SP_others is column or row vector. By default - row SP_others(i)=sum(exp(h),2)./m ; Then you are trying...

5日 前 | 0

回答済み
Hatch Pattern inside a circumference
Try this clc,clear % generate points on the circel with equal spaces y = linspace(-1,1,20); x = sqrt(1-y.^2); a = 20;...

5日 前 | 2

| 採用済み

回答済み
How to compute the ratio of the insection point in each grid on the boundary of a real structure
'That's why I try to subgrid the current one pixel into 10 smaller grids and determine whether each point is inside the circel o...

5日 前 | 0

回答済み
Division of a vector
Try clusterdata() load WorkSpace X = Zone_1_Overlap_Complete_Not_Zeros(:,1); Y = Zone_1_Overlap_Complete_Not_Zeros(:,2); idx...

5日 前 | 1

| 採用済み

回答済み
how to vectorize nested for loops
IS it correct? for m=1:s(1) for n=1:s(2) cond = RepSol(1:s(1),1:s(2)) == RepSol((1:s(1))+m-1,(1:s(2))+n-1); % ...

5日 前 | 0

回答済み
Matlab plot recording to a video
Example clc,clear x = linspace(0,10); y = sin(x) + 0.1*cos(10*x); fid = figure; h1 = gca; plot(x,y); hold on h2 = a...

5日 前 | 0

回答済み
Making moving obstacles in an matlab
After long 7 month of training and research i reached a success. Here is what i've achieved clc,clear px = 5*rand(10,1); ...

5日 前 | 0

| 採用済み

回答済み
Multiple summations in one formula
Shorter version clc,clear Yit = repmat( mean(Yijt,2), [1 N 1] ); % get mean and make 3D matrix Yi = mean(mean(Yijt,2),3); ...

6日 前 | 1

回答済み
Solving a parametererised equation that can't be done analytically
You can extract data from ezplot (Walter's answer) See attached script

6日 前 | 0

回答済み
Create a single 4D uint array from a image folder
Example n = 10; % number of images I_many = zeros(480, 640, 3, n); for i = 1:n s = sprintf('Folder%d/image.pn...

6日 前 | 0

回答済み
Is there a way to overcome For loops for fast processing?
See attached script clc, clear A = imread('masson.jpg'); subplot(1,2,1) imshow(A) RGB = [40 120 40]; % color you w...

6日 前 | 1

回答済み
Plotting Contour with point coordinates
Arc-length interpolation L = sqrt(diff(x).^2 + diff(y).^2); t = [0 cumsum(L)]; t1 = linspace(0,t(end),50); x1 = spline(t,x,t...

7日 前 | 0

| 採用済み

回答済み
How does the function "mesh" work?
Since you didn't specify X and Y for mesh() [m,n] = size(b); [X,Y] = meshgrid(1:m,1:n); mesh(X,Y,b) Is that you wanted to kn...

7日 前 | 0

回答済み
Is there a way to reduce compilation time for this segment?
See if it works

7日 前 | 0

| 採用済み

回答済み
How to plot this implicit function
Try symbolic expression clc,clear alpha=1.5; A=0.0207; gamma=0.25; syms beta eps x = (beta-alpha*(beta-gamma)+sqrt((beta-a...

8日 前 | 0

| 採用済み

回答済み
Plotting infinite series with set of parameters
Looks like simple sin() or cos(): What do you think? Try my script, i think i reached a success

8日 前 | 1

| 採用済み

回答済み
2D velocity plot
Use quiver()

8日 前 | 0

回答済み
Evaluate the smoothness of curve
I used find() function to exract all white pixels. Reduced number of points and interpolated them to get smooth curve (look HERE...

8日 前 | 1

| 採用済み

Load more