Question


I have a problem involving textbook MATLAB and use of handles and functions
I'm having problems figuring out how to get some MATLAB code from a textbook to run. The code follows. The only original code ...

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


Plotting Lines and Points in 3D
I need to learn how to plot lines and points in 3D. Can someone please provide an example in Matlab? Thank you.

plus d'un an il y a | 1 réponse | 0

1

réponse

Question


WHen I've started Matlab int he past, it always started from point last session ended. I'm using student version now, and it won't do that. Why not?
WHen I've started Matlab int he past, it always started from point last session ended. I'm using student version now, and it wo...

plus de 8 ans il y a | 1 réponse | 0

0

réponse

Question


Need to get dimensions to match and to return a 0 x 0 matrix for empty row.
This code give me a 1 x 0 array for any row that is empty. I need it to return a 0 x 0 empty matrix for any row that is empty. ...

environ 9 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How do I transform this handle into a string?
Okay, solved this one. Thanks for all the help.

environ 9 ans il y a | 0

Réponse apportée
How do I transform this handle into a string?
Okay, I solved this one. Thanks to all for responding.

environ 9 ans il y a | 0

Réponse apportée
What is wrong with this?
I modified code to: function SQUARE = logipack( V) % Find the size of the input matrix [m,n] =size(V); ...

environ 9 ans il y a | 0

Question


What is wrong with this?
I need to be able to determine what my code is producing. It yields: <</matlabcentral/answers/uploaded_files/65644/Captu...

environ 9 ans il y a | 2 réponses | 0

2

réponses

Question


How do I transform this handle into a string?
My code is: function x = find_zero( f,x1,x2 ) %FIND_ZERO Summary of this function goes here % Detailed explanation ...

environ 9 ans il y a | 5 réponses | 0

5

réponses

Question


Told to ask a new question = Why won't this work?
My code follows, it doesn't work, but it does store the column indices of 1s. function SQUARE = logipack( V) % Find ...

environ 9 ans il y a | 1 réponse | 0

1

réponse

Question


Problem with straightforward problem - Can you help?
My code is as follows. It doesn't return the right answer. For 1556 it returns "XI". Its supposed to return "XVI" for the cen...

environ 9 ans il y a | 1 réponse | 0

1

réponse

Question


Need a means of passing a handle to a function shown to me.
Hi, I need to pass a "handle" to a function. I then need to use the handle. Here is the question that describes the code. ...

environ 9 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
I don't understand this question, does someone else?
Thanks. I have to pack the matrix in an array. Here is my code. It isn't working. Any idea what is wrong? functio...

environ 9 ans il y a | 0

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

environ 9 ans il y a | 4 réponses | 0

4

réponses

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

environ 9 ans il y a | 1 réponse | 0

0

réponse

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

environ 9 ans il y a | 1 réponse | 0

0

réponse

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

environ 9 ans il y a | 1 réponse | 0

1

réponse

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

environ 9 ans il y a | 4 réponses | 0

4

réponses

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

environ 9 ans il y a | 4 réponses | 0

4

réponses

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

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Wrong answer to straightforward problem:
Thanks a lot, that was the problem.

environ 9 ans il y a | 0

Question


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

environ 9 ans il y a | 2 réponses | 0

2

réponses

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

environ 9 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Eulers Number Code and Questions
Can't use factorial.

environ 9 ans il y a | 0

Réponse apportée
Eulers Number Code and Questions
Okay, solved it.

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
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.

environ 9 ans il y a | 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 %...

environ 9 ans il y a | 2 réponses | 0

2

réponses

Question


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

environ 9 ans il y a | 1 réponse | 0

1

réponse

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

environ 9 ans il y a | 1 réponse | 0

0

réponse

Charger plus