回答済み
write a MATLAB code to find the largest element in an array of 10 elements then check whether the number is ODD or EVEN Note: use only (for-loop and if-statement) method t
Hi @3lewwi I think the advice was misconstrued. Generally, the forum moderators never know whether it is a school homework or a...

約4年 前 | 0

回答済み
Control System for a Thermoelectric Cooler in Matlab & Simulink
Hi @Nicholas Zanon Since you have found the use of Peltier Device as a Thermoelectric Cooler, then try connecting a controller ...

約4年 前 | 0

回答済み
fit a sine wave to a set of data points
Hi @C.G. I've got this. What do you get? General model Sin8: f(x) = a1*sin(b1*x+c1) + a2*sin(b2...

約4年 前 | 0

回答済み
How to detect vehicle from a video using MATLAB?
Hi @Kiran Das You can learn to use deep learning for training a vision-based vehicle detector. See a working example here: htt...

約4年 前 | 0

回答済み
How to plug in and solve for algebraic equation?
Hi @Meet Koradia The idea is to reverse the equality in , and then isolate to the left-hand side. You can solve this algebra p...

約4年 前 | 0

回答済み
Help on suitable Simulink Blocks to use
@Williams, this is good. If you have the algorithm, generally, it should simplify things in Simulink. Simulink has a block that...

約4年 前 | 1

| 採用済み

回答済み
unit step function to MATLAB
Hi @Faisal Al-Wazir Unit Step function defined for negative time? clear all; clc t = -6:0.0001:6; x = 2.5*(sign(t - -0.5) -...

約4年 前 | 1

| 採用済み

回答済み
applying newton's method
Hi @Romaisa Abdeselam Lazrak You can find the examples related to Newton-Raphson method in this link: https://www.mathworks.co...

約4年 前 | 0

回答済み
How to implement the given equation in MATLAB?
Thanks @chaaru datta. But the data you shared are non-copyable because they are images. You can click the MATLAB code button an...

約4年 前 | 1

| 採用済み

回答済み
How to write function for SIMULINK model and it's variables
Hi Azin For example only. Explore it. https://www.mathworks.com/help/simulink/slref/matlabfunction.html function [V, tau] = s...

約4年 前 | 0

回答済み
How to see the value of outputs in ANFIS
Hi @redha wassim brahimi You can use this function called evalfis() . This syntax is given below: output = evalfis(fis, input)...

約4年 前 | 1

| 採用済み

回答済み
Plotting Graph in Matlab
@Vartika Agarwal Suggest a simple solution: t1 = 70:81; t2 = 81:85; t3 = 85:100; plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, '...

約4年 前 | 1

| 採用済み

回答済み
how to plots these values?
Hi @Rakesh Roshan Hope this helps! % Data S = [-0.0032 -0.0045 -0.0056]; F = [8 9 10]; % creating plots figure(1) plot(...

約4年 前 | 0

回答済み
I want to create sliders for different parameters
Hi @Marco Zanasco Check out uislider if you want to create slider component. The example should be helpful. https://www.mathwo...

約4年 前 | 0

回答済み
Calculate swath area of a satellite
Hi @Andrea Curatolo I don't have Wert's Handbook with me right. But I have found something from the Radar Toolbox that might be...

約4年 前 | 0

回答済み
Input an array to transfer function block in simulink
@ANAND NALE I don't remember that the Transfer Function block works as a MISO system. If you think that all 20 inputs are fed ...

約4年 前 | 0

回答済み
How to plot this equation if C is 4?
@ken Alternatively, you may use fplot for an overview. fplot(@(t) (5*t.^2)./(t.^5 + 4), [-6 6])

4年以上 前 | 1

回答済み
how do I make this signal look like a rectangular pulse?
@Kwaku Junior Maybe like this? t = linspace(0, 400, 40001); u1 = heaviside(t - 185); u2 = heaviside(t - 210); u = u1 - u2; ...

4年以上 前 | 1

| 採用済み

回答済み
How to solve matrix in characteristic equation?
Hi @Tianyi Chai This is actually very easy if you know algebra and solving simultaneous equations on the desired characteristic...

4年以上 前 | 2

| 採用済み

回答済み
How to correct the code?
Hi @susan sara Adding these lines should work n = 1; h = repmat({true(n)}, 7, 1); Output = A(logical(blkdiag(h{:}))) Output...

4年以上 前 | 2

| 採用済み

回答済み
How can i fix this error ?
@Do Son Try this: % to formulate ODE syms s t y(t) Y(s) D1y = diff(y); D2y = diff(D1y); Eqn = D2y + 2*D1y == 8*t % to ...

4年以上 前 | 2

| 採用済み

回答済み
performing linear regression fits using cftool based on data points
@Jamie Al Does it look like this? x = [398 292 352 575 568 450 550 408 484 350 503 600 600]; y = [0.15 0.05 0.23 0.43 0.2...

4年以上 前 | 1

| 採用済み

回答済み
How i can solve limit this ODE question .
Looks like the population saturates at 1 million. t = linspace(0, 1500); P = (3000000*exp(t/100))./(997 + 3*exp(t/100)); plot...

4年以上 前 | 0

回答済み
Using ode45 to solve 2nd order nonlinear ODE
Hi @Fue Xiong You actually need to formulate the simultaneous problem first function F = simulprob(x) F(1) = sqrt(x(1)^...

4年以上 前 | 0

回答済み
how to plot negative frequency in x axis ?
@Belal Ahmed This impulse response can plotted by following the example here: https://www.mathworks.com/help/control/ref/lti.i...

4年以上 前 | 1

| 採用済み

回答済み
How to zoom on a particular portion of the graph?
Hi @SOMNATH MAHATO After the xlim line, enter this: p = get(gca, 'Position'); h = axes('Parent', gcf, 'Position', [p(1)+.06 p...

4年以上 前 | 1

| 採用済み

回答済み
Trouble graphing. My function is not appearing.
Hi @Alex Chen If you want to see the asymptote, perhaps use fplot() instead. https://www.mathworks.com/help/matlab/ref/fplot.h...

4年以上 前 | 2

| 採用済み

回答済み
Please explain this code about differential equations.
@Mr.DDWW The code is annotated now. Hopefully sufficient for you to understand. By the way, I've fixed the plot line because yo...

4年以上 前 | 0

回答済み
Help solving differential equations
Hi @Juan Lara Alcaraz Since you have written the code for the differential equations, function dydt = odefcn(t, y) dyd...

4年以上 前 | 1

| 採用済み

回答済み
How can I calculate the value in an equation?
@Ali Deniz Please verify if the nonlinear equation is correct. Looks like there are no real solutions for this one.

4年以上 前 | 2

| 採用済み

さらに読み込む