How to remove empty matrix : 1 by 0 in my code
이전 댓글 표시
function Question2
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
xxx
But my answer is Empty matrix: 1-by-0
I am trying to find the intersection point, but it has an error, I dont know what to do to change it.
Also i did it in a simple way,
function omg
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
x=-3:0.4:5;
y1=(x.^2);
y2=(x.^3)
find(y1==y2)
this codes works fine, but as soon as I put y1=2+(x.^2); it becomes empty matrix again.
Please help me if you can" thank you so much in advance
채택된 답변
추가 답변 (1개)
dpb
2015년 10월 19일
You didn't provide an output argument to either function
doc function % for details
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!