Question

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...

plus d'un an ago | 2 answers | 0

Question

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 = ...

plus d'un an ago | 1 answer | 0

Question

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...

plus d'un an ago | 1 answer | 0

Question

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...

plus d'un an ago | 1 answer | 0

Question

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...

plus d'un an ago | 1 answer | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 3 answers | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 1 answer | 0

Question

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...

presque 2 ans ago | 2 answers | 0

Question

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...

plus de 2 ans ago | 1 answer | 0

Question

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...

plus de 2 ans ago | 1 answer | 0

Question

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...

plus de 2 ans ago | 2 answers | 0

Question

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...

plus de 2 ans ago | 1 answer | 0

Question

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...

plus de 2 ans ago | 1 answer | 0

Question

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

plus de 2 ans ago | 1 answer | 0

Question

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 ...

plus de 2 ans ago | 1 answer | 0

Question

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...

plus de 2 ans ago | 1 answer | 0

Question

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])...

presque 3 ans ago | 0 answers | 0

Solved

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 ...

plus de 3 ans ago

Solved

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...

plus de 3 ans ago

Solved

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:...

plus de 3 ans ago

Question

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...

plus de 3 ans ago | 0 answers | 0

Question

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...

plus de 3 ans ago | 1 answer | 0

Question

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...

plus de 3 ans ago | 0 answers | 0

Question

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...

presque 4 ans ago | 1 answer | 0