n range between 1 to 7 and d's range between 1 to 100. how to solve it?
조회 수: 2 (최근 30일)
이전 댓글 표시
clc
clear all
n=[1:.0001:7];
d= ?? ;
[a]=d*n; display([a]
댓글 수: 0
채택된 답변
Star Strider
2015년 2월 9일
I’m not certain what you want to do, but this may be one approach:
n = [1:.0001:7];
d = linspace(1, 100, length(n));
a = n.*d;
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!