Beantwortet
Droplet Dynamic Dimension determination image processing
Here is an idea: i cropped region of interest and reduced/dilated to separate each area i expanded each area separately in f...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Generates for loop for Stress and Strain
Here is the problem The solution: sp = stress0.plus10:1500 for i = 1:length(sp); strain.stressplus10(i)=(sp(i)/E1)+((s...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Generates for loop for Stress and Strain
here are modifications needed to be done. No for loop is needed

etwa 6 Jahre vor | 1

Beantwortet
Temperature at specific point
Here is start equation for u1: equation for u2: Need 2 equations more to create 4x4 system of equations

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
error with Bvp4c - Unable to solve the collocation equations -- a singular Jacobian encountered.
Your boundary conditions are wrong. Try these function res = bcfcn(ya,yb) % boundary conditions res = [ya(1)-.21 % y1(z=0)...

etwa 6 Jahre vor | 1

Beantwortet
Cutting area plot matlab
What about this? clc,clear % generate surface r = 0:0.1:5; t = linspace(0,2*pi,30); [T,R] = meshgrid(t,r); Z = 5*sin(R)....

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to count number of occurences of each value in a vector and put the number beside the value as a new column?
Try this a = randi(5,20,1); x = a*0; [a1,ix] = sort(a); % sort array to see how many duplicates k = 0; for i =...

etwa 6 Jahre vor | 0

Beantwortet
How to project a 2D image to another plane?
Use rotate in-built function [x,y] = meshgrid(-10:0.5:10); z = 10*sin(hypot(x,y))./hypot(x,y); h = surf(x,y,z); % rotate...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to fill between 2 graphs
Here is my shot y = 0:0.1:pi; x1 = -sin(y); x2 = y*0-0.3; [xc,yc] = polyxpoly(x1,y,x2,y); xx = [xc(1) x1(x1<x2) xc(end)];...

etwa 6 Jahre vor | 0

Beantwortet
Plotting time series within a limit and without certain data points
Here is the solution load long_pos.mat Y = simout_x.Data; % extract data T = simout_x.Time; % extract time Y(Y<0) = nan; ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How can I Create a vector from a structure composed by tables?
Maybe something like this x=struct("apr1",apr1,"apr2",apr2,"apr3",apr3,"apr4",apr4,"apr5",apr5,"apr6",apr6,"apr7",apr7); % x.a...

etwa 6 Jahre vor | 0

Beantwortet
How do I use fsolve with an array input?
Here is my attempt without success. No solution found. Is there a mistake i made? function main opt = optimset('display','on')...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
How can I account for the magnitude of each event in this kernel density estimation?
I think the question is too hard. Don't know if someone on this forum could handle it But i'll take a shot: what about this sma...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Trouble with a simple issue in my projectile motion problem
Here is the solution

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to find the inflection point from data contained in an array?
Please accept my answer A = xlsread('data.xlsx'); x = A(:,1); y = A(:,2); %% ii = [1:4 5:10:length(x)]; x1 = x(ii); y1 ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
system of linear equations with unorganized unknowns
Here you go u = sym('u',[10 1]); f = sym('f',[10 1]); f([2 4 6]) = 1; % constants u([1 3 5 7:10]) = 1; % constant...

etwa 6 Jahre vor | 1

Beantwortet
How to interpolate color along a curve with specific colors?
I don't understand why they need [x;x] instead of just x, y and z, but removing the additional x the trick fails. Does anyone ha...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Please help to solve errors in below code
This is the solution

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Generate probabilites rows in a game
Here is start

etwa 6 Jahre vor | 0

Beantwortet
Help making a program !
Here is start: use input to ask the user to enter some number use if..else..end statements to check if the answer is correct o...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
for loop with if statement update double
Try this approach

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to get profile coordinates x,y after using improfile
What about this clc,clear close figure('windowstyle','docked') I = imread('image.png'); imshow(I) % show image h...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting different angles.
Use copyobj and view Simple example subplot(211) x = 0:10; y = sin(x); h = plot(x,y); subplot(212) h1 = copyobj(h,gca); ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot the animation of a square having a matrix of coordinates of the center of the square vs. time (x,y,t) for several time steps
Here is the best way. Pay attention that i dont draw new object all the time inside for loop. Only changing it's position (much ...

etwa 6 Jahre vor | 1

Beantwortet
Problem reading excel dates with readtable on different computers
What about this smart approach? mystr = '24/04/2020 11:12'; form = {'dd/mm/yyyy HH:MM' 'mm/dd/yyyy HH:MM' 'd...

etwa 6 Jahre vor | 0

Beantwortet
How can I make a scatter plot when the signal above a certain threshold in real time?
Here is my vision of your problem x = -20:0.5:20; f = @(x) sin(x).*sqrt(20^2-x.^2); y = f(x); ylim([-30 30]) cla plot(x,y)...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Fzero using for loop
Passing extra parameters AC = @(A,x) B - 2 * integral(Eq1,5,A) - x * integral(Eq2,5,A); %% Z(j) = fzero(@(A)AC(A,x),0)

etwa 6 Jahre vor | 0

Beantwortet
PDEPLOT AND PDEPLOT3D CHANGE FEATURES
can I change the color of the line used for the edges of my geometry? Use handlers [p,e,t] = initmesh('lshapeg'); h = pdepl...

etwa 6 Jahre vor | 0

Beantwortet
plese help my, The following code is a small example of what I want to do. I want the result of the integration and the solution of this problem
Try matlabFunction % m=@(x,y)k.*f; m = matlabFunction(k*f);

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Creating objects in class with loops
I found a mistake

etwa 6 Jahre vor | 0

| akzeptiert

Mehr laden