Community Profile

photo

Chandler Hall


Last seen: 1 year ago Active since 2022

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Content Feed

View by

Answered
Why does my else doesnt work?
You can use conditional statements to modify a variable directly, known as logical indexing. Try: d(d < 0) = 360 + d(d < 0) Se...

1 year ago | 1

Answered
How to edit text box
fig = uifigure; edit = uieditfield(fig, 'numeric'); btn = uibutton(fig, 'position', [200 100 100 22]); label = uilabel(fig, '...

1 year ago | 0

Answered
Error message when running code: "Dimension argument must be a positive integer scalar"
x=zeros(size(n,q)) Perhaps you intend: x = zeros(size(n, 1), numel(t));

1 year ago | 0

Answered
what is inline(vectorize function), also why to use fliplr for this?
Vectorize just adds some '.' to a string so that it might be used as a vectorized function, i.e., >> vectorize('(x^3)/y') an...

1 year ago | 0

| accepted

Answered
Absolute error for Intergration
It is much more convenient if you paste the actual text of the script instead of an image, or attach the entire .m file with the...

1 year ago | 0

Answered
GUI question: a button once clicked allows the user to choose a variable from the base workspace to load.
You can obtain a cell array of the names of variables in the base workspace with the command evalin('base', 'who'). You can then...

1 year ago | 0

| accepted

Answered
Error using / Arguments must be numeric, char, or logical. what should I do I tried but did not seem to work?
To create a symbolic function, you must first declare it via the syms function, and then define its content. The syntax for this...

1 year ago | 1

Answered
Control location of exponent on a colorbar
Your recommendation led me to this article about undocumented properties. In particular, we are interested in the SecondaryLabel...

1 year ago | 4

| accepted

Answered
how to Write a script that asks for a number n and nxn matrix with a Normal distribution with mean 0 and std 1?
The normal distribution with mean 0 and std 1, known as the standard normal distribution, is indeed the default distribution use...

1 year ago | 0

Answered
Newton Method code has infinite loop and an unrecognizable function x_n.
The code you have so far will require a number of revisions before it gives the desired result. The principal issue is that the ...

1 year ago | 0

Answered
Plotting Summation Function in matlab
Does adding the line: [n, t] = meshgrid(n, t); sum_parts = ... produce the desired output?

1 year ago | 0

Answered
How can I escape this loop and draw the diagram? (Find minimum of a function using Bisection method)
A couple issues with the exit condition for the while loop: the algorithm ultimately produces an interval [a, b] with a width o...

1 year ago | 0

| accepted

Answered
how do I change the contrast of a video?
By default, videos are created using lossy compression which will remove fine details. Consider img = ... v = videowrite...

1 year ago | 0

| accepted