Question


I don't understand this question, does someone else?
The question is: <</matlabcentral/answers/uploaded_files/65423/Capture.JPG>> Can someone please explain it via an illustra...

nästan 8 år ago | 4 answers | 0

4

answers

Question


Need to find Palindromic number with multipliers that are both n digits long.
Okay, I seek palindromic number with multipliers that are both "n" digits long. Once I find a palindromic candidate, I must det...

nästan 8 år ago | 0 answers | 0

0

answers

Question


Debugger won't step into software at first line with this code.
My code is: function n = palin_product( dig,lim ) if isnumeric(dig)== false n = 0; return; ...

nästan 8 år ago | 0 answers | 0

0

answers

Question


Create largest N digit number
I need to create an N digit number given only that it is N digits long. For N = 2, this number would be two nines, or 99, for...

nästan 8 år ago | 1 answer | 0

1

answer

Question


How to request additional data from the user in a function
Hi, Thanks for reading this. I have to call a function, then it appears I need to request more data from within the functi...

nästan 8 år ago | 4 answers | 0

4

answers

Question


Matlab and Pendulum function - Need Help - Thank you.
function T= pendulum( L, a0 ) %PENDULUM Summary of this function goes here % Detailed explanation goes here %initia...

nästan 8 år ago | 4 answers | 0

4

answers

Answered
I'm getting an error in the line with product (count)= A*B/C
Received an answer elsewhere.

nästan 8 år ago | 0

| accepted

Answered
Wrong answer to straightforward problem:
Thanks a lot, that was the problem.

nästan 8 år ago | 0

Question


Wrong answer to straightforward problem:
*** Write a function called triangle_wave that computes the sum <</matlabcentral/answers/uploaded_files/64878/Capture.JPG>>...

nästan 8 år ago | 2 answers | 0

2

answers

Question


I'm getting an error in the line with product (count)= A*B/C
function [ out ] = triangle_wave( n ) %TRIANGLE_WAVE Summary of this function goes here % Detailed explanation goes he...

nästan 8 år ago | 2 answers | 0

2

answers

Answered
Eulers Number Code and Questions
Can't use factorial.

nästan 8 år ago | 0

Answered
Eulers Number Code and Questions
Okay, solved it.

nästan 8 år ago | 0

| accepted

Question


Eulers Number Code and Questions
My current code follows, but is in error when I enter "1" as the input. DO you see the problem?: function [est k ] = appr...

nästan 8 år ago | 3 answers | 0

3

answers

Answered
Don't understand indexing statement from compiler
BUt in the code as written now there is no multiplication or division,and it still won't work.

nästan 8 år ago | 0

Question


Don't understand indexing statement from compiler
MY code is: function mbd = spherical_mirror_aberr(fn,D ) %SPHERICAL_MIRROR_ABERR Summary of this function goes here %...

nästan 8 år ago | 2 answers | 0

2

answers

Question


Problem with function. Can you help? Thanks.
Question is withdrawn. Problem solved.

nästan 8 år ago | 1 answer | 0

1

answer

Question


Need a better solution than "try-catch" statement to find an intentional error in input arguments
I know there are a lot of handy matlab functions that do what I must program, but I'm not allowed to use them. I need to be ab...

nästan 8 år ago | 0 answers | 0

0

answers

Question


How do I set counter = to a value when it is a persistent variable so if i reinitialize it each time through a loop it loses it purpose?
function result = exp_average(a,varargin) persistent avg counter; if counter ==0 counter =0; end if nargin ...

nästan 8 år ago | 1 answer | 0

1

answer

Question


I need to be able to use a vector as an input to a function either as a variable or in form [ 1 2 ...N]
I need to be able to use a vector as an input to a function, but it can be either in vector form or as a variable name: here c0 ...

nästan 8 år ago | 1 answer | 0

1

answer

Question


I need to be able to input a vector, either as a vector, or as a variable name, to a function.
I need to be able to use a vector as an input to a function, but it can be either in vector form or as a variable name: here c0...

nästan 8 år ago | 1 answer | 0

1

answer

Question


For some strange reason MATLAB spits out two answers to the following code , pay2 =, and p =. It is ony supposed to produce 1 answer
The following code is spitting out two answers, and it's only supposed to produce one answer, payment. Instead it spits out a...

nästan 8 år ago | 2 answers | 0

2

answers

Question


How to discover where code ends.
function days = day_diff( M1,D1,M2, D2 ) %DAY_DIFF Summary of this function goes here % Detailed explanation goes he...

nästan 8 år ago | 1 answer | 0

1

answer

Question


I'm getting two answer from my function, I only want one. How do I fix this?
function payment = fare(miles,age) tot1 =0; tot2=0; tot3=0; if miles <= 1 t...

nästan 8 år ago | 1 answer | 0

1

answer

Question


My code is producing two answers, but it is only supposed to print one.
my code is producing: payment = fare(1.45,17) pay2 = 11.2500 payment = 1.6900 The code itself is: ...

nästan 8 år ago | 1 answer | 0

1

answer

Answered
For some strange reason MATLAB spits out two answers to the following code , pay2 =, and p =. It is ony supposed to produce 1 answer
payment = fare(1.45,17) pay2 = 11.2500 payment = 1.6900

nästan 8 år ago | 0

Question


Hi, how do I cause the following code to recognize that 92 for q and 92 for v are both passing scores, right now it returns false.
function tf = eligible( v,q ) %ELIGIBLE Summary of this function goes here % Detailed explanation goes here t...

nästan 8 år ago | 2 answers | 0

2

answers

Question


Need to determine the fraction of a matrix of ones and zeroes that are zeroes
I need to determine the fraction of a matrix of ones and zeroes that are zeroes. My code is: function y = zero_stat(Y) ...

nästan 8 år ago | 2 answers | 0

2

answers

Answered
I need to produce a matrix that has one's along the diagonal from the upper right to the lower left
Thanks, but use of diag is explicit;y forbidden.

nästan 8 år ago | 0

| accepted

Question


I need to produce a matrix that has one's along the diagonal from the upper right to the lower left
I need to produce a matrix along a square matrix of size "n" that has one's along the diagonal from the upper right to the lower...

nästan 8 år ago | 3 answers | 0

3

answers

Question


I'm trying to create a matrix of odd numbers, and I'm having some trouble. Any ideas? Thanks
function orms=odd_rms(nn) lim = (nn * 2)-1; odds = nums(1:2:lim); PROBLEM IS WITH THIS LINE %(1:1:nn) = (odds(1:1:nn)...

nästan 8 år ago | 1 answer | 0

1

answer

Load more