질문

Can someone explain why no plot is showing up?

Hello, I wrote this matlab script where I am trying to plot the time 't' vs. the variable 'c' but for some reason no line is sh...

11달 전 | 답변 수: 2 | 0

질문

How to check a value in a loop at a certain instance?

I want to know what the value of u and v are when t = 7. Does anyone know how I'd do that? close all; clear all; a = 0; b = ...

12달 전 | 답변 수: 1 | 0

질문

Why are values in my loop filled with NaN?

Hello, Can anyone tell why 'u' and 'v' inside my loop are all being filled with NaN? I cant figure out what I'm doing wrong. T...

12달 전 | 답변 수: 1 | 0

질문

How to solve a partial derivative equation in MATLAB?

Hello, orgininally I solved this set of differential equations using Euler's method: they were solved with this: for i=1:1:5...

12달 전 | 답변 수: 1 | 0

질문

How to correctly change a variable from a single number to an array.

Hello, I oringinally wrote this matlab code to model the FitzHugh-Nagumo action potential. Now I'm trying to modify the model to...

12달 전 | 답변 수: 1 | 0

질문

Why is my data is incorrect after looping?

Hello I'm working on this code that solves a set of differential equations and plots the solution and I'm varying the parameter...

약 1년 전 | 답변 수: 1 | 0

질문

How to plot for a matrix?

Hello, in this code I am varying the parameter k from 1 to 4 and I get four different sets of numbers for u and v. I want to plo...

약 1년 전 | 답변 수: 1 | 0

질문

How to have multiple lines on a graph for different values of a parameter.

Hello, I'm trying to vary the parameter 'k' from 0 to 4 in this code. However, there is an error because the blue lines in th...

약 1년 전 | 답변 수: 1 | 0

질문

How to run a loop for multiple variations of a variable.

Hello, I'm new to MATLAB and coding and I'm trying to vary the parameter 'p' from 0 to 3 in incriminates of 1 inside the loop wh...

약 1년 전 | 답변 수: 1 | 0

질문

How to replace ode45 with Eulers method?

This code currently works perfectly but I'm being asked to solve the differential equation using Euler's method instead of ode45...

약 1년 전 | 답변 수: 3 | 0

질문

Lots of errors but code still runs fine?

Hello, I'm fairly new to Matlab and I wrote this scrip so solve a homework problem of mine. However when I run it I get a lot...

약 1년 전 | 답변 수: 1 | 0

질문

How to pick out the details of a specific line in an iterative graph?

Hello, I wrote this code to plot different paths of a projectile when shot of at the same initial velocity but different angl...

약 1년 전 | 답변 수: 1 | 0

질문

How to extract a specific value from a loop.

Hello I wrote this code to model a simple projectile motion problem. What I would like to do now is output the value for x af...

약 1년 전 | 답변 수: 2 | 0

질문

Help understanding the algorithms used in this code.

Hello! I came across this volumetric imaging code and I'm trying to better understand how the algorithms work. Could someone hel...

1년 이상 전 | 답변 수: 1 | 0

질문

Image Segmentation and Classification

I have recently been tasked to a project which primarily deals with image segmentation. I am supposed to read in an MR brain ima...

1년 이상 전 | 답변 수: 1 | 0

질문

Error with part of code for MRI enhancement.

Hello, I have code for an MRI enhancement that I know has been verified and works. However when I try and run it I get an er...

1년 이상 전 | 답변 수: 2 | 0

질문

Error when using ODE45

Hello I'm trying to write a code to solve a system of differential equations. One of the given conditions is F(0) = f(t). Ho...

1년 이상 전 | 답변 수: 1 | 0

질문

Can someone break down this code and tell me what it does so I can better understand it?

So far I know the following: This code first asked the user to choose an image file of choice. The rgb2gray command converts...

1년 이상 전 | 답변 수: 1 | 0

질문

How do I solve a second order ODE with boundary conditions?

I'm trying to solve the following differential equation: y''+y'-6y=20e^t, y(0)=0, y'(0)=1

2년 이하 전 | 답변 수: 1 | 0

질문

How to find landmarks of a rotated image?

I have an image that I placed five landmarks on and I rotated that image 30 degrees. How do I now find those five landmarks and ...

2년 이하 전 | 답변 수: 1 | 0

질문

How to do a 2D convolution result with the log operator for an Image.

Hi, I want to apply an LOG enhancement mask for image enhancement using conv2. The LOG enhancement mask to be convolved with the...

2년 이하 전 | 답변 수: 1 | 0

질문

When I run this code "FDx = Empty sys: 0 by 1" and FDy says the same thing. I think it because there is a Z component to M. I found that when the Z component is zero it gives a number for FDx and FDy. Does anyone know how to fix this?

R_AR = [0,7,5] R_AB = [0,0,12] F = [6,9,-1] digits(4) syms FDx FDy FDz; M = vpa(cross(R_AB,[FDx, FDy, FDz])...

약 2년 전 | 답변 수: 0 | 0

해결됨

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3년 이하 전

해결됨

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3년 이하 전

해결됨

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3년 이하 전

질문

Error when running this code.

Can anyone explain why I'm getting this error when I run this code. assignment3_2 Undefined function or variable 'loren...

3년 이하 전 | 답변 수: 0 | 0

질문

Animation of the Lorenz Attractor

Hi everybody, I'm supposed to modify this code so there's a single dot tracing the plot. I think I'm pretty close I just can...

3년 이하 전 | 답변 수: 1 | 0

질문

Animation of the Lorenz Attractor

Hi everybody, I'm supposed to modify this code in MATLAB to do something similar to this <https://www.youtube.com/watch?v=0W...

3년 이하 전 | 답변 수: 0 | 0

질문

How to get rid of the error An array for multiple LHS assignment cannot contain LEX_TS_STRING

New to programing in matlab. I am currently trying to make a MATLAB program that will find the critical values of a multi-variab...

약 3년 전 | 답변 수: 1 | 0