回答済み
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年以上 前

さらに読み込む