Respondida
How to plot parametric curve
https://de.mathworks.com/help/matlab/ref/fplot.html#bu6xntl-12

más de 1 año hace | 0

Respondida
Get mean and stdev from all values
Use a table and then use findgroups combined with splitappy. This will allow you to solve the problem with a few lines of code. ...

más de 1 año hace | 0

Respondida
Vectors must be the same length.
Change line 1: t=linspace(0,1,256); fc=60; fm=15; ac=1; am=1; wc=2*pi*fc; wm=2*pi*fm; mt=am*cos(wm*t); m_ac=ac*cos(wc...

más de 1 año hace | 0

Respondida
hello everyone. How to divide a group of points named data into two parts, dataA and dataB, as shown in the figure. Thank you very much.
% divide data idx = clusterdata(data,2); dataA = data(idx==2,:); dataB = data(idx==1,:); % plot results scatter(dataA(:,1...

más de 1 año hace | 0

| aceptada

Respondida
element wise operation column matrix
Temp_data= [20;27;29;33;40] Case_1 = Temp_data - Temp_data(1) Case_2 = diff(Temp_data)

más de 1 año hace | 0

Respondida
Return the number of rows of an array
A = [10 20 30 40 50 60 70 80 90 100] B = A(A<50)

más de 1 año hace | 0

| aceptada

Respondida
Getting wrong sine wave for frequency 10KHz
Think about your sampling rate: f = 10000; t = 0:1/(25*f):0.002; plot(t,sin(2*pi*f.*t))

más de 1 año hace | 0

Respondida
split matrix into two based on column values
A = [ 1 2 1.4; 1 3 1.4; 2 5 1.4; 1 5 81; 3 4 1.4; 5 4 81] A1 = A(A(:,end)>80,:) A2 = A(A(:,end)<=80,:)

más de 1 año hace | 0

| aceptada

Respondida
How to change the direction of x axis.
A = imread('ngc6543a.jpg'); imshow(A) B = fliplr(A); imshow(B)

más de 1 año hace | 1

Respondida
Why can't a circle be detected in such an obvious image?
Use a range for radius input argument such as: [centers1,radii1] = imfindcircles(img,[50 200],'Sensitivity',0.85,'ObjectPolarit...

más de 1 año hace | 0

Respondida
Help with solving a system of equations
Please check carefully if this is correct and if it is what you need: %% Case 1: N = 19 % clc % clear % b = 6; % Vinf = 1...

más de 1 año hace | 1

| aceptada

Respondida
How to calculate NDI Index
NDI_new = uint8(rescale(NDI, 0, 255));

más de 1 año hace | 0

Respondida
Audioread Function Error.
Re-Install your Matlab version if you are not able to undelete the file. There is no other legal way to help you, because it is ...

más de 1 año hace | 0

Respondida
How to set Assumptions for function handle?
See fimplicit3 example here and use interval argument: f = @(x,y,z)x.^2+y.^2+z.^2-1; fimplicit3(f, [-1, 1, -1, 1, 0, 1])

más de 1 año hace | 0

| aceptada

Respondida
Loop function takes too long. How can I reduce the processing time?
Yes, diff in as inbuilt and vectrorized function to get what you want. Run this command on a vector input will give you all the ...

más de 1 año hace | 0

Respondida
Splitting code into groups
Note that the run button will run all your code in one, while the other buttons will run you code section wise and go / go not t...

más de 1 año hace | 0

Respondida
Solution to a simple equation
use isolate instead of solve: clear all; close all; syms R L C omega eqn=1 - 2*C*L*omega^2 + C^2*R^2*omega^2 + C^2*L^2*omega^...

más de 1 año hace | 0

| aceptada

Respondida
how to make a function of this system
syms a b y1(t) y2(t) ode(1,1) = diff(y1,t,2) == a*y2 - cos(diff(y1,t)); ode(2,1) = diff(y2,t) == b*y1 + cos(t) [V,S] = od...

más de 1 año hace | 1

Respondida
error with plotting graph
Since theta is a vector you need to perform elementwise multiplication: a = 13; c = 17; k = 2*pi/3; theta = 0:0.0001:2*pi; ...

más de 1 año hace | 1

Respondida
Getting error with the code in ode45 function
t=[0 5]; inity = 1; [t,y]=ode45(@f, t, inity); plot(t,y) function dy = f(~,y) % y=[9,100]; dont overwrite y D=0.00000001; ...

más de 1 año hace | 0

| aceptada

Respondida
How can I plot the Temperature distribution in this code.
Play arround with slice: % LBM 3D - D3Q15 Heat Diffusion in a Plate % Problem - 5.10 clc clear variables close all alpha =...

más de 1 año hace | 1

| aceptada

Respondida
How to multiply a matrix to another cell matrix
Use cellfun: A = magic(3) C = {rand(3,4); rand(3,4); rand(3,4); rand(3,4); rand(3,4)} result = cellfun(@(x)mtimes(A,x),C,'Uni...

más de 1 año hace | 1

| aceptada

Respondida
Why do the ode45 solver is not running in my code?
Your problem appears to be stiff - use ode15s instead: clear; clc; a = 1; %alpha p = 7.5; %rho b = 4; %beta g = 16; %gamma ...

más de 1 año hace | 0

| aceptada

Respondida
i'm getting this error "Unable to perform assignment because the left and right sides have a different number of elements"
Problem 1 h returns more than one solution which produces the error because the result of xa1(i+1)=I2(i)+h*S2(1) with h bein...

más de 1 año hace | 1

Respondida
All possible combination based on 2^n
n = 3 ff2n(n)

más de 1 año hace | 0

Respondida
percent of similarity between images
When using a neural net you could use the score output argument to get this. Look at this example there is a bar chart based on ...

más de 1 año hace | 0

| aceptada

Respondida
How I can append matrices of different dimensions in another matrix?
A = randi(10, 3, 1) B = rand(4, 1) C = randi(10,5,1) D = vertcat(A,B,C)

más de 1 año hace | 0

| aceptada

Respondida
Checking if 2 edges in a graph are connected
You could use the neighbors function, which gives a list of connected nodes for a given node. You could combine this with the is...

más de 1 año hace | 0

| aceptada

Respondida
hi guys, I want to make a spectral RollofPoint of speech and when I enter this code from mathworks, I get this error that the variable t1 is not declared, even though I declared it. Please I will be happy for every piece of advice.
You have to run code so that the variables appear in your workspace. go to the editor tab and press "run". the editor tab appear...

más de 1 año hace | 0

| aceptada

Respondida
how to remove spaces in a string?
A = ["Ly R4", "Ba R7", "Ty Ru"] B = erase(A," ")

más de 1 año hace | 1

| aceptada

Cargar más