답변 있음
Error Using ^ When Typing Power Command
Let's say for example you have the vector: t = 1 : 10; This is basically a 1-by-10 matrix. So, t^2 tries to perf...

거의 7년 전 | 1

| 수락됨

답변 있음
Read data file with mixed delimited columns
Please try the attached code. It's not elegant but it does what you want.

거의 7년 전 | 0

| 수락됨

답변 있음
How to make an interactive drop down in App Designer?
Add a 'DropDownValueChanged' callback to your uidropdown;

거의 7년 전 | 0

| 수락됨

답변 있음
sum of array in structure.
try this. uC = arrayfun(@(v) sum(v.Y),x)

거의 7년 전 | 0

| 수락됨

답변 있음
Scan and change a specific number in a text file?
How about this: filename = 'Item.txt'; % Read the text from file filetext = fileread(filename); % Set the search p...

7년 초과 전 | 0

| 수락됨

답변 있음
Hallo, i have my matlab exam tomorrow, can anyone help me find the errors in the give Parameter. Thankyou
The error is in the line y=pi+v(3) You are essentially trying to retrieve the 3rd element of a 2-element array/vector. ...

7년 초과 전 | 0

답변 있음
How to create vectors in the for loop
Try this. B = arrayfun(@(x) linspace(-x,x,47),A,'uni',false); % B is a cell array of vectors Using a for loop: len ...

7년 초과 전 | 1

| 수락됨

답변 있음
How to store two tables resulting from a for loop
Ok, I now understand what you want. numIters = 3; tables = cell(numIters,1); % A cell array to store the tables for...

7년 초과 전 | 3

답변 있음
Change meshgrid axes min/step/max value using a GUI
Does this help: assignin('base','minX',eval(minX)); % minX is the text such as '2:3:18'

7년 초과 전 | 0

답변 있음
How to make mesh or contour by using just x,y,z coordinates data ?
[xx,yy,zz] = meshgrid(x,y,z); contour(xx,yy,zz)

7년 초과 전 | 0

답변 있음
calculate days between two dates
date0 = '08Apr1978'; date1 = '18Jan1978'; dForm = 'ddmmmyyyy'; % Date Format String, datenum does not necessarily need t...

7년 초과 전 | 0

| 수락됨

답변 있음
How to store two tables resulting from a for loop
Try this. t1 = table(); t1.Name = 'My Name'; t1.Age = 89; data = table(); data.Name = 'Your Name'; data.A...

7년 초과 전 | 0

제출됨


appdir()
Determine the directory from where the application is launched.

7년 초과 전 | 다운로드 수: 1 |

답변 있음
What is missing from MATLAB?
The ability to * Define the main class and inner classes in one single m-file. * Ternary operator. * Matrix-unpacking such ...

거의 8년 전 | 0

답변 있음
matlab code to make values of an array in specific ranges(index positions) equal to zero
Hi, I hope this is want you want. d=[1 2 3 4 5 6 7 8 9 10 11 12 13]; start_index_positions=[2 6 10]; end_index_positions=...

거의 8년 전 | 0

답변 있음
If I have a 20-digit numeric string, how can I convert it to an array where the elements are the digits of the string?
Ok, try this code: n = '9555688756196283262165034064'; matrix = arrayfun(@str2double ,n);

거의 8년 전 | 0

답변 있음
Adding new column to a matrix with the same number repeated
Hi, let's try this: [nRows,nCols] = size(yourMatrix); yourMatrix = [yourMatrix 2*ones(nRows,1)]; % This is called mat...

거의 8년 전 | 0

답변 있음
removing suffiex or prefix from sting
try this: str = 'unbecomingly'; prefix = 'un'; % The prefix to remove suffix = 'ly'; % The suffix to remove regex =...

대략 8년 전 | 3

답변 있음
sum of doubles of different cells
This function should do what you want. function C = cellsum(A,B) if iscell(A) && iscell(B) C = cellfun(@(x,y...

8년 초과 전 | 1

| 수락됨

답변 있음
how can I sort the arrays according to example I explained below?
Ok, try this. CoEff=[1 3 5 2 4;2 5 3 1 6;4 2 6 3 1]; Result= [51 25 34]; [~,locs]=ismember(sort(Result),Result); %% CoE...

8년 초과 전 | 0

답변 있음
How to make splash screen work while deploying to stand alone?
The splash image should be in the same directory as the app; so make sure you have an image named "splash.png" in your app direc...

8년 초과 전 | 0

답변 있음
Plot a variable in x-y plane.
Try this: Remember that on the x-y plane, the value of z is zero. plot3(z,h,zeros(size(h))); % plots h vs z on the x-y pl...

8년 초과 전 | 0

답변 있음
how to find interval of data
Will this do: interval = 2; % 2 hour-interval maxHr = 23; tmstamp = 0 : interval : maxHr; len = length(tmstamp...

8년 초과 전 | 1

| 수락됨

답변 있음
find string pattern in strings ( 'ab*d' in 'abcd')
I presume that you want it to work for all patterns 'ab.*d' that don't contain the letter "n" or "N", such that "abCDnMMd" does ...

8년 초과 전 | 0

답변 있음
How can i use both the left and right y axis on a single figure?
Ok, try this: x = linspace(0,2*pi,100); y1 = 2*cos(x); y2 = -2*sin(x); y3 = 5*sin(2*x); y4 = -10.5*sin(5*x); [hAx,...

8년 초과 전 | 0

답변 있음
find string pattern in strings ( 'ab*d' in 'abcd')
try this: pattern = 'ab.*d'; %% Pattern to match textstr = 'sqthabVUYd'; %% Input string match = regexp(text...

8년 초과 전 | 0

| 수락됨

답변 있음
How can i use both the left and right y axis on a single figure?
try the _plotyy_ command. In the command window type doc plotyy to see examples of how to use the function.

8년 초과 전 | 0

문제를 풀었습니다


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

8년 초과 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

8년 초과 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

8년 초과 전

더 보기