답변 있음
How can I vectorize the fun in Matlab with single code
Possible, but not recommended: https://de.mathworks.com/help/matlab/ref/vectorize.html

3년 초과 전 | 0

답변 있음
functions within the script
a1=myfunction(5) a2=myfunction(7) function a=myfunction(r) a=10*r end

3년 초과 전 | 1

| 수락됨

답변 있음
can i pleas be helped on the following code i dnt understand the outpu
A=[2 4 10 13;16 3 7 18;8 4 9 25;3 12 15 17] A(4:8) You need to understand linear indexing in Matlab: https://de.mathworks.com...

3년 초과 전 | 0

답변 있음
How to solve simulatenous coupled non linear differential equation
https://de.mathworks.com/help/matlab/examples.html?category=ordinary-differential-equations

3년 초과 전 | 0

| 수락됨

답변 있음
Failure in initial objective function evaluation when I'm solving a linear programming.
Use: function z= myobj01(x) z= -3*x(1)-4*x(2); end

3년 초과 전 | 0

| 수락됨

답변 있음
Creation of a black and white image
image=zeros(512,512); image(206:305,206:305)=255; imshow(image)

3년 초과 전 | 0

| 수락됨

답변 있음
From symbolic to numerical results for quadratic equation
You could use symbolic functions: syms y(a,b,x) y(a,b,x) = a*x^2 - b*x % Calculate values for a=1, b=2 and x in a range from...

3년 초과 전 | 0

| 수락됨

답변 있음
Create an equally spaced vector when taking the sine of another vector
p_inv = linspace(-1,1,25); theta = asin(p_inv); p = sin(theta); diff(p) % Is p equally spaced? scatter(p,theta)

3년 초과 전 | 0

| 수락됨

답변 있음
Comparing 2 frames from video
Try: function [P,MSE]=Untitled(original_img,stego_img) original_img=double(original_img); stego_img=double(stego_img); if ...

3년 초과 전 | 0

| 수락됨

답변 있음
I am unable to find pv array in 2014b please help me to find it.
PV Array was introduced with R2015a - you can not find it in R2014b - see the link. Are you sure your friends version is 2014a? ...

3년 초과 전 | 0

답변 있음
HOW TO SOLVE 2 EQUATION ODE USING ODE45 IN MATLAB?
f = @(t,y) [0.303*y(1)-0.557*y(1).^2+0.260*y(2).*y(1);... 0.0345*y(2)-1.18e-7*y(2).^2+3.55e-14*y(1).*y(2)]; Y0 = [0.0718,0...

3년 초과 전 | 0

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

3년 초과 전 | 0

답변 있음
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. ...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 0

| 수락됨

답변 있음
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))

3년 초과 전 | 0

답변 있음
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,:)

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 1

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
How to calculate NDI Index
NDI_new = uint8(rescale(NDI, 0, 255));

3년 초과 전 | 0

답변 있음
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 ...

3년 초과 전 | 0

답변 있음
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])

3년 초과 전 | 0

| 수락됨

답변 있음
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 ...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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^...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 1

답변 있음
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; ...

3년 초과 전 | 1

더 보기