Search found 19 matches

by Charles
Fri Mar 10, 2017 1:28 pm
Forum: Introduction
Topic: Hello (Howdy) from Texas!
Replies: 0
Views: 3300

Hello (Howdy) from Texas!

Hello everyone! I just passed my FE Exam on my second attempt. I will be taking the Civil/Transportation PE Exam in April 2017 and am excited for this new challenge, but very nervous. I don't know where to start studying... I purchased the CERM, Six minute problems, and NCEES Practice Exam. I look f...
by Charles
Fri Mar 10, 2017 12:44 pm
Forum: MATLAB Projects
Topic: How can I find each max element of three matrices as new matrix?
Replies: 2
Views: 3330

Re: How can I find each max element of three matrices as new matrix?

theenggprojects wrote:
Thu Mar 09, 2017 8:25 am
That's not much difficult, use the below code:

Code: Select all

maxMatrix = [max(a) max(b) max(c)];
maxMatrix will be your matrix with maximum values of matrix a, b and c. Moreover, it will be a vector and if you want a 2 Dimensional matrix then add d too.
Thanks for the code :)
by Charles
Fri Mar 10, 2017 12:40 pm
Forum: MATLAB Projects
Topic: How to call a function which is in another program MATLAB
Replies: 2
Views: 2754

Re: How to call a function which is in another program MATLAB

You should place your Main file and the function file in the same folder otherwise you can't call function files in the Main File. Moreover, another thing I just checked is that you are missing the bracket sign in below code: [C,rows,cols,entries] = Matrix'C.txt') So, you should add this small brac...
by Charles
Fri Mar 10, 2017 12:38 pm
Forum: MATLAB Projects
Topic: How to do strcmp in textboxes with Matlab
Replies: 2
Views: 3254

Re: How to do strcmp in textboxes with Matlab

theenggprojects wrote:
Thu Mar 09, 2017 8:18 am
Here's the command to compare two strings:

Code: Select all

tf = strcmp(s1,s2)
where s1 and s2 are the textboxes string and tf will return whether they are same or not. You should also have a look at this link to know more about this command: https://www.mathworks.com/help/matlab/ref/strcmp.html
It's worked !
by Charles
Fri Mar 10, 2017 12:37 pm
Forum: Electrical Projects
Topic: 7 level cascaded H bridge inverter
Replies: 2
Views: 2548

Re: 7 level cascaded H bridge inverter

theenggprojects wrote:
Thu Mar 09, 2017 8:13 am
Switching is always done in a symmetrical pattern, means you have to switch them one by one, first then second then third. You should have a look at this tutorial: 3 Level Cascaded H Bridge Inverter and 11 Level Cascaded H Bridge Inverters.
Thanks for the tutorial :)
by Charles
Mon Mar 06, 2017 12:58 pm
Forum: MATLAB Projects
Topic: How to do strcmp in textboxes with Matlab
Replies: 2
Views: 3254

How to do strcmp in textboxes with Matlab

I would like to know how to compare strings between 2 textboxs in Matlab. Can someone please give some examples? Thank you in advantage.
by Charles
Mon Mar 06, 2017 12:56 pm
Forum: MATLAB Projects
Topic: How to call a function which is in another program MATLAB
Replies: 2
Views: 2754

How to call a function which is in another program MATLAB

I write this in my main program [C,rows,cols,entries] = Matrix('C.txt') Matrix fuction is in another program Matrix.m and I want to call it. I get this error : Undefined function or variable 'Matrix'. Error in (line 19) [C,rows,cols,entries] = Matrix'C.txt') Can you please tell me how to fix it ?
by Charles
Mon Mar 06, 2017 12:54 pm
Forum: MATLAB Projects
Topic: How can I find each max element of three matrices as new matrix?
Replies: 2
Views: 3330

How can I find each max element of three matrices as new matrix?

Maybe the question is a little bit confused, I'll make an example below. Let's say I have a 3 matrices a, b, c with same size. a = [2, 5; 6, 9]; b = [3, 3; 8, 1]; c = [5, 5; 2, 7]; How can I get the new matrix max with each max element in all three matrices? max = [5, 5; 8, 9] I know I could create ...
by Charles
Mon Mar 06, 2017 12:53 pm
Forum: MATLAB Projects
Topic: MATLAB App Designer non-Numeric data plotting
Replies: 0
Views: 2068

MATLAB App Designer non-Numeric data plotting

UIAxes in Matlab App designer does not support non-numeric data such as a graph plot, is there any alternative to do it inside UI framework?

Image
by Charles
Mon Mar 06, 2017 12:36 pm
Forum: MATLAB Projects
Topic: Reproducible results when creating random matrices across parallel calls in MATLAB
Replies: 0
Views: 2031

Reproducible results when creating random matrices across parallel calls in MATLAB

I want to create a number of random matrices, but they are really big to fit in memory, so I'd like to find a way to reproduce them across computers, so that when I need to send them to another machine, I'd just need to send the code. Here is how I want to do it: num_of_iters = 10; K = 200; for iter...