답변 있음
Error executing .fig file during GUI creation
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread. I would strongly rec...

거의 4년 전 | 0

| 수락됨

답변 있음
Will running MATLAB from an external hard drive work?
In my experience Matlab will run fine on removable media. If boot times are important to you, make sure you get a fast drive and...

거의 4년 전 | 0

답변 있음
How do I and can I set up my MATLAB application to be used on my Apple IPAD as my second computer?
To the best of my knowledge, the Matlab apps for Android and iOS are only convenient portals to Matlab Online. So it wouldn't co...

거의 4년 전 | 0

답변 있음
reads in n numbers from the user storing the numbers in a vector. Print the numbers from the ends inwards (last, first, second last, second, third)
You are asking the user for the number of elements. You should use that to pre-allocate the vector array so you can use indexing...

거의 4년 전 | 0

| 수락됨

답변 있음
How do I rename variables from workspace for multiple matfiles?
With the syntax Les posted it is not possible to apply this to multiple mat files and variables automatically, which is one of t...

거의 4년 전 | 2

답변 있음
waitbar cancel doesn't work
You forgot to set the value first and you reversed 0 and 1: f = waitbar(0,'Loading','Name','Exporting...',... 'CreateCance...

거의 4년 전 | 0

| 수락됨

답변 있음
Extract info using regular expression matching
Maybe this is what you need? myinp = {['getval(' '''MYINFO\ECE1''' ')' '==19 & (getval(' '''MYDataCode\CSE''' ') >= 4) & (getva...

거의 4년 전 | 0

| 수락됨

답변 있음
When debugging in R2021b, the current line is highlighted in light green making it impossible to read the line when the text color is light and background is dark.
The line highlight has been changed to a much darker shade of green in R2022a. This leaves code readible if you have set your fo...

거의 4년 전 | 2

| 수락됨

답변 있음
Simple mex file crash?
Despite what you indicate in the 4th line, inData and outData are not actually double*, they are mxDouble*. As you can see in t...

거의 4년 전 | 0

답변 있음
Enabling multiple Edit Fields
I suspect this is what you need. I don't know if this works in AppDesigner, but this is how it normally works in Matlab: a=2; ...

거의 4년 전 | 1

| 수락됨

답변 있음
How do I create a Greek letter in live editor?
Matlab variable names are not allowed to contain rich text. They must start with a-z or A-Z, after which up to 62 characters are...

거의 4년 전 | 0

| 수락됨

답변 있음
I'm a student and I want to access matlab fundamentals course.but my college don't have license and they are asking me to get a cracked version?I want to learn matlab
It sounds like you would be elligible for the student license, which is a lot cheaper than the home license (exact numbers depen...

거의 4년 전 | 0

| 수락됨

답변 있음
How to get colormap of a non-indexed RGB image?
Since a colormap is a symbolic representation of the colors (and the number are not actually guaranteed to mean anything), you m...

거의 4년 전 | 0

답변 있음
Writing a script for Goldbach's Conjecture
I think the goal is to use implicit expansion to create an array with the sums of all primes. A bit like this: A=[1 2 3 5];...

거의 4년 전 | 0

| 수락됨

답변 있음
How can I save my scalogram image?
Since it clears the current figure (and then creates the object, the easiest way is to this: img=cwt(signal); exportgraphi...

거의 4년 전 | 0

| 수락됨

답변 있음
Export plots as png
There is a reason export_fig has over 300000 download by now: it works more often than the normal built-in tools. You can get it...

거의 4년 전 | 0

| 수락됨

답변 있음
store performance coefficient of different iterations in a vector
Following the standard strategy: nse1_vector=NaN(1,1000); nse1_vector(1)=0.1; nse1_index=1; % ANN Model-------------------...

거의 4년 전 | 0

| 수락됨

답변 있음
Preallocating for speed?
When you append data to a variable like this: a=[1 2 3]; a=[a 4]; Matlab first allocates a block of memory large enough to ho...

거의 4년 전 | 0

답변 있음
Matlab (GA or PSO) M-file for sizing & siting of distributed generation or distributed energy storage
The code requested in this question was originally posted in a blog at http://dg-algorithm.blogspot.com/2018/01/optimal-location...

거의 4년 전 | 0

답변 있음
When using two separate edit fields in Matlab app designer, how to save both into a text file?
If you want to write both values, you need to specify that, or append instead of overwriting. %When user types into box, save i...

거의 4년 전 | 0

답변 있음
Issue with figure display
The command you posted will set the default visibility property to off. That means that a new figure that is created will have i...

거의 4년 전 | 0

| 수락됨

답변 있음
Remove 0 values from an array
% create a patterned array A = (1:10)' + (10:10:30); A([3 15 27]) = 0; row_has_zero = any( A==0 ,2) A(row_has_zero,:)=[]

거의 4년 전 | 0

답변 있음
Splitting a matrix in vectors and combination of vectors
Note that this method results in a different sort from what you describe. You could use sortrows if the order is important to yo...

거의 4년 전 | 0

| 수락됨

답변 있음
How to extract values from an array?
Using RunLength by Jan: array = [10 10 10 30 30 30 30 30 4 4 4 4 4 30 30 30 30 30 30 2 2 2 2 2 30 30 30 30]; %first select o...

거의 4년 전 | 0

| 수락됨

답변 있음
Storing values in a matrix
You're already there: for column = 2:width(cooling_load) x = table2array(cooling_load(:,column)); for i = 0:364 ...

거의 4년 전 | 0

| 수락됨

답변 있음
Finding row indices of a cell array containing a certain element
A simple loop should do: arr = cell(4,1); arr{1,1}=1:3:15; arr{2,1}=2:2:20; arr{3,1}=3:3:30; arr{4,1}=0:4:10; L=false(nu...

거의 4년 전 | 0

답변 있음
save variables in Matlab GUI
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread. With your current se...

거의 4년 전 | 0

답변 있음
How to access app designer GUI pushbutton callback inside my function?
My suggestion would be to move the code you want to call to a separate function. In my view, the callback of an object should on...

거의 4년 전 | 0

답변 있음
"Too many input arguments" when calling a constructor with named arguments
Your current syntax ( nfet(LEVEL=1) ) will be passed to your contructor as "LEVEL",1 (if you want a syntax that is compatible wi...

거의 4년 전 | 0

| 수락됨

답변 있음
Bringing arrays to the same length
There are two issues with the solution by Arif: It uses find on a logical array, but that is only used to index an array It as...

거의 4년 전 | 1

더 보기