回答済み
Extract only numbers from a cell array.
Your data seems much more complicated than that and has commas inside cells as a char also. I have removed white spaces, +j s...

7年弱 前 | 0

回答済み
How can I find which row has a specied values that I entered?
For example, A=[4 5 6 7; 8 4 5 6; 4 5 6 8; 8 4 8 9 ;1 2 2 4; 4 5 6 8]; % A matrix v = [4 5 6 8]; % vector you are searching f...

7年弱 前 | 1

| 採用済み

回答済み
How can share the handles variable between two skripts?
@madhan ravi +1 If they are scripts, they should be created as methods of a class which is abstracted from handle superclass. ...

7年弱 前 | 0

| 採用済み

回答済み
GUI Resizing Issue for Different Screen Resolutions
The best, easiest and effortless way to do it is using GUI Layout Toolbox from FEX. You will never need to implement SizeChang...

7年弱 前 | 1

回答済み
How to use uiwait in GUI
Use waitfor instead. Waitfor pauses calculation until the object destroyed or deleted. figHandle = uifigure(..) % or you can c...

7年弱 前 | 0

| 採用済み

回答済み
Basic power rule ((a^b)^c = a^(b*c)) does not work
By the definition Euler's equation: z = x + iy means So the two things might be different: and x2 = exp(b*c) is e...

約7年 前 | 1

| 採用済み

回答済み
link axes of specific subplots
Hi Lieke, Try this below: ax1 = subplot(8,1,1); % plot something ax2 = subplot(8,1,2); % plot something ax8 = subplot(8,1,...

約7年 前 | 5

| 採用済み

回答済み
swap values of an array
Hi Mazhar Ali, Try this below: for i = 1:numel(v) temp = O(v(i)); replacemnt = O(v(i)+1); O(v(i)) = r...

約7年 前 | 0

回答済み
Line property error with time series plot
Hi John, The below line is only gives the char array of a file name. You are not actually importing your data. Wind='FloNOAA...

約7年 前 | 0

| 採用済み

回答済み
Nested for loops and saving data in a vector
Hi, First start with preallocation. lambda will be your 100x7 matrix, each row is a set of 7 calculation. alpha=[-0.17445,0.0...

約7年 前 | 1

| 採用済み

回答済み
deleting the entire line starting from 0,0,0 from a huge text file
Try this: A(all((A(:,[1:3]) == [0 0 0])')',:) = []; Where A is the Nx6 double array from your text file.

約7年 前 | 0

回答済み
'Envelope' function doesn't work anymore
Maybe this would help you: restoredefaultpath rehash toolboxcache savepath Please restart Matlab after this execution.

約7年 前 | 0

回答済み
How to make an editable uitable with one categorical column ?
The reason is the uitable's 2nd and 3rd columns are cell array. You should create them as double arrays like below with bracke...

約7年 前 | 0

| 採用済み

回答済み
how to creat this vector Z?
Try this: X=[nan nan 4 3 6 9 2 nan nan nan 8 2 13 6 1 nan]; Y=[9 13]; risingEdgeLocs = find(diff(~isnan(X)) > 0); indSpli...

約7年 前 | 1

| 採用済み

回答済み
Automatic resize of tables in MATLAB
Have you tried java object written here? https://undocumentedmatlab.com/page/27 jScroll = findjobj(hTable); jTable = jScroll...

約7年 前 | 0

回答済み
How to dynamically name variables in a matlab struct?
You are almost there. Define your algor2 and probl2 as cell arrays with braces: algor2 = {'alg1','alg2','alg3'} probl2 = {'...

約7年 前 | 0

| 採用済み

回答済み
TickLabelFormat with exponential format without precision
just use logaritmic axis with semilogx: i = 1:10; x = 10.^i; y = rand(1,numel(x)); figure; hPlot = semilogx(x,y); Here i...

約7年 前 | 0

回答済み
Given feed back that, I need to call outputSummary with the proper arguments.
This code is so badly written. There are too many nested functions. outputSummary function is defined inside the costFunction....

約7年 前 | 0

| 採用済み

回答済み
Creating a n*2 array from a variable in workspace
Please read this below: https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dyna...

約7年 前 | 0

回答済み
Report or Research Paper which explains, How does fmincon work?
Here you can see another answer of the similar question: https://www.mathworks.com/matlabcentral/answers/111542-how-does-fminc...

約7年 前 | 0

回答済み
Multiplying a matrix in a cell by another matrix in the same cell
Try this: RU = {randi(20,25,1),randi(20,25,1),randi(20,25,1),randi(20,25,1),randi(20,25,1)}'; result = prod(horzcat(RU{1:nume...

約7年 前 | 0

回答済み
Help needed with a matlab code - end missing.
I haven't seen such a badly written code ever since in my life. How they put that in a paper? Zero comments, too many nested f...

約7年 前 | 0

回答済み
how can I show a photo by 10 seconds in matlab gui?
Try this: folderpath = 'C:\Users\...\Desktop\walpapers'; % folder of your jpg files directoryContent = dir([folderpath,'\*.jpg...

約7年 前 | 0

| 採用済み

回答済み
To plot x y z according to time
Hello Anne, I tried couple of things on your code and change the subplots into vertical instead of horizontal. Looks better. I...

約7年 前 | 0

| 採用済み

回答済み
How to plot a data of points?
Hi Mai, arrayfun gives you what you expected. Check my comments and read more about the function link is here: arrayfun As KS...

約7年 前 | 0

| 採用済み

回答済み
How can i manage to plot theta1 and theta2 vs time?
Hi, I have edited this code to give timeArray, theta1 and theta2 as outputs. First save edited version, then call the functi...

約7年 前 | 0

| 採用済み

解決済み


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

約7年 前

解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

約7年 前

解決済み


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

約7年 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

約7年 前

さらに読み込む